From 991d0b1e679f143cafb5a92221cf9470b76a7339 Mon Sep 17 00:00:00 2001 From: Leopere Date: Wed, 3 Oct 2018 16:14:53 -0400 Subject: [PATCH] changed order of container execution MySQL/MariaDB has a startup time so adding a depends_on and reorganization may fix a few things --- chainquery/docker-compose.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/chainquery/docker-compose.yml b/chainquery/docker-compose.yml index 2b1b8d1..0241029 100644 --- a/chainquery/docker-compose.yml +++ b/chainquery/docker-compose.yml @@ -5,20 +5,6 @@ networks: external: true services: -################ -## Chainquery ## -################ - chainquery: - build: . - restart: always - networks: - lbrynet: - ipv4_address: 10.10.0.2 - labels: - - "traefik.expose=false" - expose: - - 6300 - - 3306 ############# ## MariaDB ## ############# @@ -43,3 +29,20 @@ services: - 3306 volumes: - ./data/db:/var/lib/mysql + +################ +## Chainquery ## +################ + chainquery: + build: . + restart: always + networks: + lbrynet: + ipv4_address: 10.10.0.2 + labels: + - "traefik.expose=false" + expose: + - 6300 + - 3306 + depends_on: + - mysql