From 26a71f7f1f17354dbbbdae8bc726d342374fed90 Mon Sep 17 00:00:00 2001 From: Robin Chan Date: Sat, 12 Oct 2019 19:12:36 +0100 Subject: [PATCH] if web starts first without app, nginx will quit --- docker-compose/docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index fc5c906..8c9ea7e 100644 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -43,6 +43,8 @@ services: - public:/var/www/app/public expose: # Expose ports without publishing them to the host machine - they’ll only be accessible to linked services. - "80" + depends_on: + - app ports: # Delete if you want to use reverse proxy - 8000:80 networks: @@ -67,4 +69,4 @@ services: done EOF' networks: - - default \ No newline at end of file + - default