Skip to content

Commit 76e5af6

Browse files
Add dependencies to docker-compose file
1 parent 8331c50 commit 76e5af6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker-compose.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ services:
44
api:
55
image: node:16.13
66
container_name: node-api-boilerplate
7+
depends_on:
8+
- mongodb
79
command: bash -c "yarn install && yarn dev"
810
working_dir: /api
911
volumes:
@@ -27,6 +29,8 @@ services:
2729
mongo-express:
2830
container_name: node-api-boilerplate-mongo-express
2931
image: mongo-express
32+
depends_on:
33+
- mongodb
3034
ports:
3135
- 8081:8081
3236
environment:

0 commit comments

Comments
 (0)