Commit 46e00349 authored by Liam Horne's avatar Liam Horne Committed by GitHub

build: add depends_on feature of docker-compose (#676)

parent 4c2fbdea
...@@ -21,6 +21,8 @@ services: ...@@ -21,6 +21,8 @@ services:
- ${L1_CHAIN_PORT:-9545}:8545 - ${L1_CHAIN_PORT:-9545}:8545
deployer: deployer:
depends_on:
- l1_chain
image: ethereumoptimism/deployer image: ethereumoptimism/deployer
build: build:
context: .. context: ..
...@@ -40,6 +42,10 @@ services: ...@@ -40,6 +42,10 @@ services:
- ${DEPLOYER_PORT:-8080}:8081 - ${DEPLOYER_PORT:-8080}:8081
dtl: dtl:
depends_on:
- l1_chain
- deployer
- l2geth
image: ethereumoptimism/data-transport-layer image: ethereumoptimism/data-transport-layer
build: build:
context: .. context: ..
...@@ -61,6 +67,9 @@ services: ...@@ -61,6 +67,9 @@ services:
- ${DTL_PORT:-7878}:7878 - ${DTL_PORT:-7878}:7878
l2geth: l2geth:
depends_on:
- l1_chain
- deployer
image: ethereumoptimism/l2geth image: ethereumoptimism/l2geth
build: build:
context: .. context: ..
...@@ -83,6 +92,10 @@ services: ...@@ -83,6 +92,10 @@ services:
- ${L2GETH_WS_PORT:-8546}:8546 - ${L2GETH_WS_PORT:-8546}:8546
relayer: relayer:
depends_on:
- l1_chain
- deployer
- l2geth
image: ethereumoptimism/message-relayer image: ethereumoptimism/message-relayer
build: build:
context: .. context: ..
...@@ -99,6 +112,10 @@ services: ...@@ -99,6 +112,10 @@ services:
GET_LOGS_INTERVAL: 500 GET_LOGS_INTERVAL: 500
batch_submitter: batch_submitter:
depends_on:
- l1_chain
- deployer
- l2geth
image: ethereumoptimism/batch-submitter image: ethereumoptimism/batch-submitter
build: build:
context: .. context: ..
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment