Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 1caef8c

Browse files
authored
Mention dependency of app service over db service
1 parent 9150757 commit 1caef8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

containers/python-3-postgres/.devcontainer/docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ services:
1414
# Overrides default command so things don't shut down after the process ends.
1515
command: sleep infinity
1616

17+
links:
18+
- db
19+
1720
db:
1821
image: postgres
1922
restart: always
2023
ports:
2124
- 5432:5432
2225
environment:
23-
POSTGRES_PASSWORD: LocalPassword
26+
POSTGRES_PASSWORD: LocalPassword

0 commit comments

Comments
 (0)