changed order of container execution

MySQL/MariaDB has a startup time so adding a depends_on and
reorganization may fix a few things
This commit is contained in:
Leopere 2018-10-03 16:14:53 -04:00
parent 11f0e1b7a7
commit 991d0b1e67

View file

@ -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