Skip to content

Commit 880e4be

Browse files
fastapi depends on db
1 parent 61f701f commit 880e4be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/fastapi-postgres/compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ services:
1010
published: 8000
1111
environment:
1212
- DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres
13+
depends_on:
14+
- db
1315
#deploy:
1416
# resources:
1517
# reservations:

0 commit comments

Comments
 (0)