netlify / gocommerce

A headless e-commerce for JAMstack sites.
MIT License
1.54k stars 208 forks source link

Make `api` service depend on `db` service in docker-compose #194

Closed bearcherian closed 5 years ago

bearcherian commented 5 years ago

- Summary 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.

- Test plan

run docker-compose up and make sure db runs before api starts

- Description for the changelog

Ensure db service runs before api service when running docker-compose