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-05-05 08:02:19 +00:00
|
|
|
CERC_DENY_MULTIADDRS: ${CERC_DENY_MULTIADDRS}
|
2023-09-06 09:18:32 +00:00
|
|
|
CERC_PUBSUB: ${CERC_PUBSUB}
|
|
|
|
CERC_RELEASE: "v0.1.7"
|
2023-07-31 05:11:26 +00:00
|
|
|
CERC_USE_NPM: true
|
|
|
|
CERC_CONFIG_FILE: "src/config.json"
|
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/watcher-mobymask-v2/mobymask-app-start.sh:/scripts/mobymask-app-start.sh
|
2023-07-31 05:11:26 +00:00
|
|
|
- ../config/watcher-mobymask-v2/mobymask-app-config.json:/app/src/mobymask-app-config.json
|
2023-04-12 12:47:13 +00:00
|
|
|
- peers_ids:/peers
|
2023-04-06 09:47:00 +00:00
|
|
|
- mobymask_deployment:/server
|
|
|
|
ports:
|
2023-06-27 06:53:56 +00:00
|
|
|
- "127.0.0.1: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}
|
2023-05-05 08:02:19 +00:00
|
|
|
CERC_DENY_MULTIADDRS: ${CERC_DENY_MULTIADDRS}
|
2023-09-06 09:18:32 +00:00
|
|
|
CERC_PUBSUB: ${CERC_PUBSUB}
|
|
|
|
CERC_RELEASE: "v0.1.7-lxdao-0.1.1"
|
2023-07-31 05:11:26 +00:00
|
|
|
CERC_USE_NPM: false
|
|
|
|
CERC_CONFIG_FILE: "src/utils/config.json"
|
2023-04-20 05:19:19 +00:00
|
|
|
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/watcher-mobymask-v2/mobymask-app-start.sh:/scripts/mobymask-app-start.sh
|
2023-07-31 05:11:26 +00:00
|
|
|
- ../config/watcher-mobymask-v2/mobymask-app-config.json:/app/src/mobymask-app-config.json
|
2023-04-20 05:19:19 +00:00
|
|
|
- peers_ids:/peers
|
|
|
|
- mobymask_deployment:/server
|
|
|
|
ports:
|
2023-06-27 06:53:56 +00:00
|
|
|
- "127.0.0.1:3004:80"
|
2023-04-20 05:19:19 +00:00
|
|
|
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:
|