2023-04-06 09:47:00 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
2023-06-07 13:18:59 +00:00
|
|
|
# Builds and serves the peer-test react-app
|
2023-04-06 09:47:00 +00:00
|
|
|
peer-test-app:
|
2023-06-07 13:18:59 +00:00
|
|
|
restart: unless-stopped
|
2023-04-06 09:47:00 +00:00
|
|
|
image: cerc/react-peer:local
|
2023-04-18 12:55:58 +00:00
|
|
|
working_dir: /scripts
|
2023-04-06 09:47:00 +00:00
|
|
|
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-05-05 08:02:19 +00:00
|
|
|
CERC_DENY_MULTIADDRS: ${CERC_DENY_MULTIADDRS}
|
2023-04-25 13:02:38 +00:00
|
|
|
command: ["sh", "test-app-start.sh"]
|
2023-04-06 09:47:00 +00:00
|
|
|
volumes:
|
2023-07-18 14:59:07 +00:00
|
|
|
- ../config/network/wait-for-it.sh:/scripts/wait-for-it.sh
|
2023-04-18 12:55:58 +00:00
|
|
|
- ../config/watcher-mobymask-v2/test-app-start.sh:/scripts/test-app-start.sh
|
2023-04-12 12:47:13 +00:00
|
|
|
- peers_ids:/peers
|
2023-04-06 09:47:00 +00:00
|
|
|
ports:
|
2023-06-27 06:53:56 +00:00
|
|
|
- "127.0.0.1:3003:80"
|
2023-04-06 09:47:00 +00:00
|
|
|
healthcheck:
|
2023-04-18 12:55:58 +00:00
|
|
|
test: ["CMD", "nc", "-v", "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-12 12:47:13 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
peers_ids:
|