afe7b27cce
modified: ../docker-compose.yaml specify the db service into db directory
19 lines
364 B
YAML
19 lines
364 B
YAML
services:
|
|
|
|
db:
|
|
image: postgres:16
|
|
container_name: db
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "${PGPORT}:${PGPORT}"
|
|
volumes:
|
|
- postgres-db:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=${PGUSER}
|
|
- POSTGRES_PASSWORD=${PGPASSWORD}
|
|
- POSTGRES_DB=${PGDATABASE}
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres-db: |