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:
parent
11f0e1b7a7
commit
991d0b1e67
1 changed files with 17 additions and 14 deletions
|
@ -5,20 +5,6 @@ networks:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
################
|
|
||||||
## Chainquery ##
|
|
||||||
################
|
|
||||||
chainquery:
|
|
||||||
build: .
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
lbrynet:
|
|
||||||
ipv4_address: 10.10.0.2
|
|
||||||
labels:
|
|
||||||
- "traefik.expose=false"
|
|
||||||
expose:
|
|
||||||
- 6300
|
|
||||||
- 3306
|
|
||||||
#############
|
#############
|
||||||
## MariaDB ##
|
## MariaDB ##
|
||||||
#############
|
#############
|
||||||
|
@ -43,3 +29,20 @@ services:
|
||||||
- 3306
|
- 3306
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/db:/var/lib/mysql
|
- ./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
|
||||||
|
|
Loading…
Add table
Reference in a new issue