2023-09-20 04:18:15 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
# Builds and serves the MobyMask v3 react-app
|
|
|
|
mobymask-v3-app:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: cerc/mobymask-ui:local
|
2024-02-21 09:41:44 +00:00
|
|
|
env_file:
|
|
|
|
- ../config/watcher-mobymask-v3/mobymask-params.env
|
2023-09-20 04:18:15 +00:00
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
2024-02-21 09:41:44 +00:00
|
|
|
CERC_CHAIN_ID: ${CERC_CHAIN_ID}
|
|
|
|
CERC_DEPLOYED_CONTRACT: ${CERC_DEPLOYED_CONTRACT}
|
|
|
|
CERC_RELAY_NODES: ${CERC_RELAY_NODES}
|
|
|
|
CERC_DENY_MULTIADDRS: ${CERC_DENY_MULTIADDRS}
|
|
|
|
CERC_PUBSUB: ${CERC_PUBSUB}
|
|
|
|
CERC_GOSSIPSUB_DIRECT_PEERS: ${CERC_GOSSIPSUB_DIRECT_PEERS}
|
|
|
|
CERC_NA_ADDRESS: ${CERC_NA_ADDRESS}
|
|
|
|
CERC_VPA_ADDRESS: ${CERC_VPA_ADDRESS}
|
|
|
|
CERC_CA_ADDRESS: ${CERC_CA_ADDRESS}
|
2023-09-20 04:18:15 +00:00
|
|
|
CERC_APP_WATCHER_URL: ${CERC_APP_WATCHER_URL}
|
2024-02-21 09:41:44 +00:00
|
|
|
CERC_PAYMENT_NITRO_ADDRESS: ${CERC_PAYMENT_NITRO_ADDRESS:-0xBBB676f9cFF8D242e9eaC39D063848807d3D1D94}
|
2023-09-20 04:18:15 +00:00
|
|
|
CERC_SNAP_URL: ${CERC_SNAP_URL}
|
2023-10-03 12:10:34 +00:00
|
|
|
working_dir: /app
|
|
|
|
command: ["bash", "/scripts/mobymask-app-start.sh"]
|
2023-09-20 04:18:15 +00:00
|
|
|
volumes:
|
2024-02-21 09:41:44 +00:00
|
|
|
- ../config/watcher-mobymask-v3/mobymask-app-start.sh:/scripts/mobymask-app-start.sh
|
|
|
|
- peers_ids:/peers
|
2023-10-03 12:10:34 +00:00
|
|
|
- mobymask_deployment:/server
|
|
|
|
- nitro_deployment:/nitro
|
2023-09-20 04:18:15 +00:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:3004:80"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "80"]
|
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 10s
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2023-10-03 12:10:34 +00:00
|
|
|
|
|
|
|
volumes:
|
2024-02-21 09:41:44 +00:00
|
|
|
peers_ids:
|
2023-10-03 12:10:34 +00:00
|
|
|
mobymask_deployment:
|
|
|
|
nitro_deployment:
|