File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ services:
77 working_dir : /workspaces/fastapi-jinja2-postgres-webapp
88 depends_on :
99 - db
10- env_file :
11- - ../.env
1210 command : sleep infinity
1311
1412 # Override/augment settings for the db service defined in the root compose file
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ services:
22 db :
33 image : postgres:latest
44 environment :
5- POSTGRES_USER : ${DB_USER}
6- POSTGRES_PASSWORD : ${DB_PASSWORD}
7- POSTGRES_DB : ${DB_NAME}
5+ POSTGRES_USER : ${DB_USER:-postgres }
6+ POSTGRES_PASSWORD : ${DB_PASSWORD:-postgres }
7+ POSTGRES_DB : ${DB_NAME:-fastapi-jinja2-postgres-webapp }
88 ports :
9- - " ${DB_PORT}:5432"
9+ - " ${DB_PORT:-5432 }:5432"
1010 volumes :
1111 - postgres_data:/var/lib/postgresql/data
1212
You can’t perform that action at this time.
0 commit comments