legacy-server-config/postgres/docker-compose.yml

18 lines
408 B
YAML

version: '2.4'
services:
postgres:
image: postgres:13.1-alpine
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PGDATA: /var/lib/postgresql/data/pgdata
networks:
- postgres_net
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
postgres_net:
name: postgres_net
driver: bridge