laconicd/docker-compose.yml
Simon Pfeifhofer 300af0df0e
build: fix docker setup (#337)
* fix: issue #310

- add ip-addresses for localnet-setup generation
- add localnet-setup folder to keep localnet-setup-artifacts
- map localnet-setup-artifacts to containers
- change start-docker.sh to pick up generated testnet artifacts

* feat: get rid of explicit ip-address-assignments for containers

* feat: get rid of docker-localnet, introduce localnet-build and localnet-show-logstream, fix localnet-unsafe-reset and localnet-clean, add comments

* fix: add --no-cache on docker build, exclude build-directory
2021-08-04 09:30:13 +00:00

74 lines
1.5 KiB
YAML

version: "3"
services:
ethermintdnode0:
container_name: ethermintdnode0
image: "ethermintd/node"
ports:
- "26657:26657"
- "8545:8545"
- "8546:8546"
- "8125:8125"
environment:
- ID=0
- LOG=${LOG:-ethermintd.log}
volumes:
- ./localnet-setup/node0/ethermintd:/ethermint:Z
networks:
- localnet
entrypoint: "bash start-docker.sh"
ethermintdnode1:
container_name: ethermintdnode1
image: "ethermintd/node"
ports:
- "26658:26657"
- "8555:8545"
- "8556:8546"
- "8126:8125"
environment:
- ID=1
- LOG=${LOG:-ethermintd.log}
volumes:
- ./localnet-setup/node1/ethermintd:/ethermint:Z
networks:
- localnet
entrypoint: "bash start-docker.sh"
ethermintdnode2:
container_name: ethermintdnode2
image: "ethermintd/node"
environment:
- ID=2
- LOG=${LOG:-ethermintd.log}
ports:
- "26659:26657"
- "8565:8545"
- "8566:8546"
- "8127:8125"
volumes:
- ./localnet-setup/node2/ethermintd:/ethermint:Z
networks:
- localnet
entrypoint: "bash start-docker.sh"
ethermintdnode3:
container_name: ethermintdnode3
image: "ethermintd/node"
environment:
- ID=3
- LOG=${LOG:-ethermintd.log}
ports:
- "26660:26657"
- "8575:8545"
- "8576:8546"
- "8128:8125"
volumes:
- ./localnet-setup/node3/ethermintd:/ethermint:Z
networks:
- localnet
entrypoint: "bash start-docker.sh"
networks:
localnet: