Skip to content
Snippets Groups Projects
Commit 1abafc28 authored by Jerome DESCHAMPS's avatar Jerome DESCHAMPS
Browse files

Add data and testnet simulation to docker compose

parent 5608f5f3
No related branches found
No related tags found
1 merge request!105Init docker compose for transport demo
Pipeline #6495 failed
......@@ -9,6 +9,11 @@ services:
volumes:
- ecomobicoin-data:/data
simulation-data:
image: registry.gitlab.limos.fr/ecomobicoin/data/movement-data
volumes:
- ecomobicoin-data:/data
## RUN NODES
node-1:
image: registry.gitlab.limos.fr/ecomobicoin/truite
......@@ -30,16 +35,16 @@ services:
image: registry.gitlab.limos.fr/ecomobicoin/truite
container_name: ecomobicoin-node-2
command: [
"truite",
"--datadir",
"/data/data-2",
"--chain-spec-file",
"/data/local-2.ron",
# "--no-discovery",
"--no-dns-discovery",
"--rpc-listen-address",
"0.0.0.0:8545",
]
"truite",
"--datadir",
"/data/data-2",
"--chain-spec-file",
"/data/local-2.ron",
# "--no-discovery",
"--no-dns-discovery",
"--rpc-listen-address",
"0.0.0.0:8545",
]
depends_on:
init:
condition: service_completed_successfully
......@@ -55,7 +60,7 @@ services:
explorer:
image: registry.gitlab.limos.fr/ecomobicoin/block-explorer
environment:
- ERIGON_URL=http://ecomobicoin-2.cri.local.isima.fr:42002
- ERIGON_URL=http://localhost:42002
depends_on:
- node-2
ports:
......@@ -78,5 +83,18 @@ services:
restart: on-failure
# front env vars are set in docker build.
testnet-injector:
image: registry.gitlab.limos.fr/ecomobicoin/testnet-injector:modify-docker-image
container_name: testnet-injector
platform: linux/amd64/r
environment:
- RPC_URL=http://localhost:8545
- RPC_URL_MINER_1=http://localhost:41002
- RPC_URL_MINER_2=http://localhost:42002
- BLOCK_TIME=12
- TOTAL_SIMULATION_TIME=1800
command: ./scripts/run_simulation_2_nodes.sh
volumes:
ecomobicoin-data:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment