modified: ../.env
modified: ../docker-compose.yaml specify the db service into db directory
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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:
|
||||
Reference in New Issue
Block a user