Skip to content
Browse files

Make `api` service depend on `db` service (#194)

When first running this with docker-compose, the api fails immediately
because the `db` service is not yet running. This adds `depends_on` to
make sure the `db` service is running before the `api` service.
  • Loading branch information...
bearcherian authored and mraerino committed Oct 31, 2019
1 parent 4217779 commit d507fd2d0bda927e2a44a90b0daa61a87e3d9276
Showing with 2 additions and 0 deletions.
  1. +2 −0 docker-compose.yml
@@ -19,6 +19,8 @@ services:
- 8080:8080
- db
- db

image: mysql:5.7

0 comments on commit d507fd2

Please sign in to comment.
You can’t perform that action at this time.