2023-04-06 09:47:00 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
peer-test-app:
|
|
|
|
# Builds and serves the peer-test react-app
|
|
|
|
image: cerc/react-peer:local
|
|
|
|
working_dir: /app/packages/test-app
|
|
|
|
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_RELAY_NODES: ${CERC_RELAY_NODES}
|
2023-04-06 09:47:00 +00:00
|
|
|
command: ["sh", "./test-app-start.sh"]
|
|
|
|
volumes:
|
|
|
|
- ../config/watcher-mobymask-v2/test-app-config.json:/app/packages/test-app/src/test-app-config.json
|
|
|
|
- ../config/watcher-mobymask-v2/test-app-start.sh:/app/packages/test-app/test-app-start.sh
|
|
|
|
ports:
|
|
|
|
- "0.0.0.0:3003:3000"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-v", "localhost", "3000"]
|
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 10s
|
2023-04-11 10:51:03 +00:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|