2023-04-06 09:47:00 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
# Builds and serves the MobyMask react-app
|
|
|
|
mobymask-app:
|
2023-04-18 12:55:58 +00:00
|
|
|
restart: unless-stopped
|
2023-04-06 09:47:00 +00:00
|
|
|
image: cerc/mobymask-ui:local
|
|
|
|
env_file:
|
|
|
|
- ../config/watcher-mobymask-v2/mobymask-params.env
|
2023-04-11 10:51:03 +00:00
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
|
|
|
CERC_CHAIN_ID: ${CERC_CHAIN_ID}
|
|
|
|
CERC_DEPLOYED_CONTRACT: ${CERC_DEPLOYED_CONTRACT}
|
|
|
|
CERC_APP_WATCHER_URL: ${CERC_APP_WATCHER_URL}
|
|
|
|
CERC_RELAY_NODES: ${CERC_RELAY_NODES}
|
2023-04-20 05:19:19 +00:00
|
|
|
CERC_BUILD_DIR: "@cerc-io/mobymask-ui/build"
|
2023-04-18 12:55:58 +00:00
|
|
|
working_dir: /scripts
|
2023-04-25 13:02:38 +00:00
|
|
|
command: ["sh", "mobymask-app-start.sh"]
|
2023-04-06 09:47:00 +00:00
|
|
|
volumes:
|
2023-04-18 12:55:58 +00:00
|
|
|
- ../config/wait-for-it.sh:/scripts/wait-for-it.sh
|
|
|
|
- ../config/watcher-mobymask-v2/mobymask-app-start.sh:/scripts/mobymask-app-start.sh
|
2023-04-12 12:47:13 +00:00
|
|
|
- peers_ids:/peers
|
2023-04-06 09:47:00 +00:00
|
|
|
- mobymask_deployment:/server
|
|
|
|
ports:
|
2023-04-18 12:55:58 +00:00
|
|
|
- "0.0.0.0:3002:80"
|
2023-04-06 09:47:00 +00:00
|
|
|
healthcheck:
|
2023-04-20 05:19:19 +00:00
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "80"]
|
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 10s
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
# Builds and serves the LXDAO version of MobyMask react-app
|
|
|
|
lxdao-mobymask-app:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: cerc/mobymask-ui:local
|
|
|
|
env_file:
|
|
|
|
- ../config/watcher-mobymask-v2/mobymask-params.env
|
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
|
|
|
CERC_CHAIN_ID: ${CERC_CHAIN_ID}
|
|
|
|
CERC_DEPLOYED_CONTRACT: ${CERC_DEPLOYED_CONTRACT}
|
|
|
|
CERC_APP_WATCHER_URL: ${CERC_APP_WATCHER_URL}
|
|
|
|
CERC_RELAY_NODES: ${CERC_RELAY_NODES}
|
|
|
|
CERC_BUILD_DIR: "@cerc-io/mobymask-ui-lxdao/build"
|
|
|
|
working_dir: /scripts
|
2023-04-25 13:02:38 +00:00
|
|
|
command: ["sh", "mobymask-app-start.sh"]
|
2023-04-20 05:19:19 +00:00
|
|
|
volumes:
|
|
|
|
- ../config/wait-for-it.sh:/scripts/wait-for-it.sh
|
|
|
|
- ../config/watcher-mobymask-v2/mobymask-app-start.sh:/scripts/mobymask-app-start.sh
|
|
|
|
- peers_ids:/peers
|
|
|
|
- mobymask_deployment:/server
|
|
|
|
ports:
|
|
|
|
- "0.0.0.0:3004:80"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "80"]
|
2023-04-06 09:47:00 +00:00
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 10s
|
2023-04-11 10:51:03 +00:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2023-04-06 09:47:00 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
mobymask_deployment:
|
2023-04-12 12:47:13 +00:00
|
|
|
peers_ids:
|