Nabarun Gogoi
53fbc60f55
* Use standalone mobymask-v2-watcher-ts to run peer test * Add watcher-ts image for running peer tests * Run separate containers for peer ids generation and tests * Wait for watcher to be up before starting peer-test-app * Resolve peer-test-app compose file and remove setup-repositories for web-apps Former-commit-id: c4002dcc5c5001d3b45cda334bcc64929a1c7dbc
34 lines
977 B
YAML
34 lines
977 B
YAML
version: '3.2'
|
|
|
|
services:
|
|
peer-test-app:
|
|
# Builds and serves the peer-test react-app
|
|
image: cerc/react-peer:local
|
|
working_dir: /scripts
|
|
env_file:
|
|
- ../config/watcher-mobymask-v2/mobymask-params.env
|
|
environment:
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
|
CERC_RELAY_NODES: ${CERC_RELAY_NODES}
|
|
command:
|
|
- sh
|
|
- -c
|
|
- ./wait-for-it.sh -h ${CERC_WATCHER_HOST:-$${DEFAULT_CERC_WATCHER_HOST}} -p ${CERC_WATCHER_PORT:-$${DEFAULT_CERC_WATCHER_PORT}} -s -t 0 -- ./test-app-start.sh
|
|
volumes:
|
|
- ../config/wait-for-it.sh:/scripts/wait-for-it.sh
|
|
- ../config/watcher-mobymask-v2/test-app-start.sh:/scripts/test-app-start.sh
|
|
- peers_ids:/peers
|
|
ports:
|
|
- "0.0.0.0:3003:80"
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-v", "localhost", "80"]
|
|
interval: 20s
|
|
timeout: 5s
|
|
retries: 15
|
|
start_period: 10s
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
volumes:
|
|
peers_ids:
|