24 lines
384 B
YAML
24 lines
384 B
YAML
|
services:
|
||
|
db:
|
||
|
container_name: postgres
|
||
|
image: postgres
|
||
|
environment:
|
||
|
POSTGRES_USER: ${DB_USER}
|
||
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||
|
PGDATA: /data/postgres
|
||
|
volumes:
|
||
|
- db:/data/postgres
|
||
|
ports:
|
||
|
- "5332:5432"
|
||
|
networks:
|
||
|
- db
|
||
|
env_file:
|
||
|
- .env
|
||
|
restart: unless-stopped
|
||
|
|
||
|
networks:
|
||
|
db:
|
||
|
driver: bridge
|
||
|
|
||
|
volumes:
|
||
|
db:
|