2023-09-15 14:27:38 +00:00
|
|
|
services:
|
|
|
|
|
|
|
|
bootstrap:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: testnet/Dockerfile
|
|
|
|
ports:
|
|
|
|
- "3000:3000/tcp"
|
|
|
|
- "8080:8080/tcp"
|
|
|
|
volumes:
|
|
|
|
- ./testnet:/etc/nomos
|
|
|
|
environment:
|
2023-10-30 14:51:40 +00:00
|
|
|
- BOOTSTRAP_NODE_KEY=${DOCKER_COMPOSE_BOOSTRAP_NET_NODE_KEY:-1000000000000000000000000000000000000000000000000000000000000000}
|
|
|
|
- LIBP2P_NODE_MASK=${DOCKER_COMPOSE_LIBP2P_NODE_KEY_MASK:-2000000000000000000000000000000000000000000000000000000000000000}
|
|
|
|
- LIBP2P_REPLICAS=${DOCKER_COMPOSE_LIBP2P_REPLICAS:-1}
|
|
|
|
- OVERLAY_NODES=${DOCKER_COMPOSE_OVERLAY_NODES:-1000000000000000000000000000000000000000000000000000000000000000}
|
|
|
|
entrypoint: /etc/nomos/scripts/run_bootstrap_node.sh
|
2023-09-15 14:27:38 +00:00
|
|
|
|
|
|
|
libp2p-node:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: testnet/Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./testnet:/etc/nomos
|
|
|
|
deploy:
|
|
|
|
replicas: ${DOCKER_COMPOSE_LIBP2P_REPLICAS:-1}
|
|
|
|
depends_on:
|
|
|
|
- bootstrap
|
|
|
|
- etcd
|
2023-10-17 11:08:15 +00:00
|
|
|
- mix-node-0
|
|
|
|
- mix-node-1
|
|
|
|
- mix-node-2
|
2023-09-15 14:27:38 +00:00
|
|
|
environment:
|
2023-10-16 11:06:40 +00:00
|
|
|
- LIBP2P_REPLICAS=${DOCKER_COMPOSE_LIBP2P_REPLICAS:-1}
|
2023-09-15 14:27:38 +00:00
|
|
|
- ETCDCTL_ENDPOINTS=${DOCKER_COMPOSE_ETCDCTL_ENDPOINTS:-etcd:2379}
|
|
|
|
- ETCDCTL_API=${DOCKER_COMPOSE_ETCDCTL_API:-3}
|
2023-10-30 14:51:40 +00:00
|
|
|
- LIBP2P_NODE_MASK=${DOCKER_COMPOSE_LIBP2P_NODE_KEY_MASK:-2000000000000000000000000000000000000000000000000000000000000000}
|
2023-09-15 14:27:38 +00:00
|
|
|
- OVERLAY_NODES=${DOCKER_COMPOSE_OVERLAY_NODES:-1000000000000000000000000000000000000000000000000000000000000000}
|
2023-10-30 14:51:40 +00:00
|
|
|
- OVERLAY_SUPER_MAJORITY_THRESHOLD=${DOCKER_COMPOSE_SUPER_MAJORITY_THRESHOLD:-1}
|
2023-09-15 14:27:38 +00:00
|
|
|
- NET_INITIAL_PEERS=${DOCKER_COMPOSE_NET_INITIAL_PEERS:-/dns/bootstrap/tcp/3000}
|
2023-10-30 14:51:40 +00:00
|
|
|
entrypoint: /etc/nomos/scripts/run_nomos_node.sh
|
2023-09-28 12:37:09 +00:00
|
|
|
|
2023-10-16 11:06:40 +00:00
|
|
|
mix-node-0:
|
2023-09-28 12:37:09 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: testnet/Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./testnet:/etc/nomos
|
2023-10-16 11:06:40 +00:00
|
|
|
entrypoint: /usr/bin/mixnode
|
2023-10-16 14:42:41 +00:00
|
|
|
command: /etc/nomos/mixnode_config.yaml
|
2023-10-16 11:06:40 +00:00
|
|
|
|
|
|
|
mix-node-1:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: testnet/Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./testnet:/etc/nomos
|
|
|
|
entrypoint: /usr/bin/mixnode
|
2023-10-16 14:42:41 +00:00
|
|
|
command: /etc/nomos/mixnode_config.yaml
|
2023-10-16 11:06:40 +00:00
|
|
|
|
|
|
|
mix-node-2:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: testnet/Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./testnet:/etc/nomos
|
|
|
|
entrypoint: /usr/bin/mixnode
|
2023-10-16 14:42:41 +00:00
|
|
|
command: /etc/nomos/mixnode_config.yaml
|
2023-09-15 14:27:38 +00:00
|
|
|
|
|
|
|
etcd:
|
|
|
|
image: quay.io/coreos/etcd:v3.4.15
|
|
|
|
ports:
|
|
|
|
- "2379:2379/tcp"
|
|
|
|
command:
|
|
|
|
- /usr/local/bin/etcd
|
|
|
|
- --advertise-client-urls=http://etcd:2379
|
|
|
|
- --listen-client-urls=http://0.0.0.0:2379
|