stack-orchestrator/stack_orchestrator/data/compose/docker-compose-go-nitro-auth.yml

113 lines
3.3 KiB
YAML
Raw Normal View History

2024-03-19 21:49:51 +00:00
version: '3.7'
services:
go-nitro-alice:
image: cerc/go-nitro:local
hostname: go-nitro-alice
restart: on-failure
depends_on:
2024-04-02 23:02:54 +00:00
- go-nitro-bootnode
2024-03-19 21:49:51 +00:00
environment:
CERC_NITRO_CHAIN_PK: ${CERC_NITRO_CHAIN_PK_ALICE:-888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218}
2024-04-02 23:02:54 +00:00
CERC_NITRO_CHAIN_URL: ${CERC_NITRO_CHAIN_URL:-ws://fixturenet-eth-geth-1:8546}
2024-03-19 21:49:51 +00:00
CERC_NA_ADDRESS: ${CERC_NA_ADDRESS}
CERC_VPA_ADDRESS: ${CERC_VPA_ADDRESS}
CERC_CA_ADDRESS: ${CERC_CA_ADDRESS}
2024-04-02 23:02:54 +00:00
env_file:
- ../config/go-nitro-auth/alice.env
2024-03-19 21:49:51 +00:00
entrypoint: ["bash", "-c", "/app/run-nitro-node.sh"]
volumes:
- nitro_deployment:/app/deployment
2024-04-02 23:02:54 +00:00
- go_nitro_data_alice:/app/data
2024-03-19 21:49:51 +00:00
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
healthcheck:
test: ["CMD", "nc", "-vz", "localhost", "4006"]
interval: 5s
timeout: 5s
retries: 100
start_period: 100s
ports:
2024-04-02 23:02:54 +00:00
- "3006"
- "4006"
- "5006"
- "4106"
- "4206"
- "4216"
2024-03-19 21:49:51 +00:00
go-nitro-bob:
image: cerc/go-nitro:local
hostname: go-nitro-bob
restart: on-failure
depends_on:
2024-04-02 23:02:54 +00:00
- go-nitro-bootnode
2024-03-19 21:49:51 +00:00
environment:
CERC_NITRO_CHAIN_PK: ${CERC_NITRO_CHAIN_PK_BOB:-570b909da9669b2f35a0b1ac70b8358516d55ae1b5b3710e95e9a94395090597}
2024-04-02 23:02:54 +00:00
CERC_NITRO_CHAIN_URL: ${CERC_NITRO_CHAIN_URL:-ws://fixturenet-eth-geth-1:8546}
2024-03-19 21:49:51 +00:00
CERC_NA_ADDRESS: ${CERC_NA_ADDRESS}
CERC_VPA_ADDRESS: ${CERC_VPA_ADDRESS}
CERC_CA_ADDRESS: ${CERC_CA_ADDRESS}
2024-04-02 23:02:54 +00:00
env_file:
- ../config/go-nitro-auth/bob.env
2024-03-19 21:49:51 +00:00
entrypoint: ["bash", "-c", "/app/run-nitro-node.sh"]
volumes:
- nitro_deployment:/app/deployment
2024-04-02 23:02:54 +00:00
- go_nitro_data_bob:/app/data
2024-03-19 21:49:51 +00:00
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
healthcheck:
test: ["CMD", "nc", "-vz", "localhost", "4007"]
interval: 5s
timeout: 5s
retries: 100
start_period: 100s
ports:
2024-04-02 23:02:54 +00:00
- "3007"
- "4007"
- "5007"
- "4107"
- "4207"
- "4217"
2024-03-19 21:49:51 +00:00
2024-04-02 23:02:54 +00:00
go-nitro-bootnode:
image: cerc/go-nitro:local
hostname: go-nitro-bootnode
restart: on-failure
2024-03-19 21:49:51 +00:00
environment:
2024-04-02 23:02:54 +00:00
CERC_NITRO_CHAIN_URL: ${CERC_NITRO_CHAIN_URL:-ws://fixturenet-eth-geth-1:8546}
CERC_NA_ADDRESS: ${CERC_NA_ADDRESS}
CERC_VPA_ADDRESS: ${CERC_VPA_ADDRESS}
CERC_CA_ADDRESS: ${CERC_CA_ADDRESS}
2024-04-05 03:55:45 +00:00
CERC_NITRO_RELAY_ON: true
2024-04-02 23:02:54 +00:00
env_file:
- ../config/go-nitro-auth/bootnode.env
entrypoint: [ "bash", "-c", "/app/run-nitro-node.sh" ]
2024-03-19 21:49:51 +00:00
volumes:
- nitro_deployment:/app/deployment
2024-04-02 23:02:54 +00:00
- go_nitro_data_bootnode:/app/data
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
healthcheck:
test: [ "CMD", "nc", "-vz", "localhost", "4008" ]
interval: 5s
timeout: 5s
retries: 100
start_period: 100s
2024-04-05 03:55:45 +00:00
ports:
- "9090"
2024-03-22 22:10:23 +00:00
nitro-caddy:
image: caddy:2-alpine
2024-03-21 07:10:37 +00:00
restart: always
2024-04-02 23:39:48 +00:00
environment:
CERC_ETH_RPC_ENDPOINT: ${CERC_ETH_RPC_ENDPOINT:-http://fixturenet-eth-geth-1:8545}
2024-03-21 07:10:37 +00:00
volumes:
2024-03-22 22:10:23 +00:00
- ../config/go-nitro-auth/caddy/Caddyfile:/etc/caddy/Caddyfile
2024-03-21 07:10:37 +00:00
ports:
2024-04-02 23:02:54 +00:00
- "5678"
2024-03-21 07:10:37 +00:00
depends_on:
- go-nitro-alice
- go-nitro-bob
2024-03-19 21:49:51 +00:00
volumes:
go_nitro_data_alice:
go_nitro_data_bob:
2024-04-02 23:02:54 +00:00
go_nitro_data_bootnode:
nitro_deployment: