2023-03-20 12:55:39 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
mobymask-watcher-db:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: postgres:14-alpine
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=vdbm
|
|
|
|
- POSTGRES_MULTIPLE_DATABASES=mobymask-watcher,mobymask-watcher-job-queue
|
|
|
|
- POSTGRES_EXTENSION=mobymask-watcher-job-queue:pgcrypto
|
|
|
|
- POSTGRES_PASSWORD=password
|
|
|
|
volumes:
|
|
|
|
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
|
|
|
|
- mobymask_watcher_db_data:/var/lib/postgresql/data
|
|
|
|
ports:
|
|
|
|
- "0.0.0.0:15432:5432"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-v", "localhost", "5432"]
|
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 10s
|
|
|
|
|
2023-03-24 11:53:54 +00:00
|
|
|
mobymask:
|
|
|
|
image: cerc/mobymask:local
|
|
|
|
working_dir: /app/packages/server
|
2023-04-05 11:56:38 +00:00
|
|
|
env_file:
|
|
|
|
- ../config/watcher-mobymask-v2/optimism-params.env
|
2023-03-24 11:53:54 +00:00
|
|
|
environment:
|
|
|
|
- ENV=PROD
|
2023-04-05 11:56:38 +00:00
|
|
|
command:
|
|
|
|
- sh
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
./wait-for-it.sh -h $${L2_GETH_HOST} -p $${L2_GETH_PORT} -s -t 0 && \
|
|
|
|
./wait-for-it.sh -h $${L2_NODE_HOST} -p $${L2_NODE_PORT} -s -t 0 && \
|
|
|
|
./deploy-and-generate-invite.sh
|
2023-03-24 11:53:54 +00:00
|
|
|
volumes:
|
2023-04-05 11:56:38 +00:00
|
|
|
- ../config/wait-for-it.sh:/app/packages/server/wait-for-it.sh
|
2023-04-03 12:43:29 +00:00
|
|
|
- ../config/watcher-mobymask-v2/secrets-template.json:/app/packages/server/secrets-template.json
|
2023-04-04 09:23:28 +00:00
|
|
|
- ../config/watcher-mobymask-v2/deploy-and-generate-invite.sh:/app/packages/server/deploy-and-generate-invite.sh
|
2023-04-05 12:22:12 +00:00
|
|
|
- mobymask_deployment:/app/packages/server
|
2023-04-03 12:43:29 +00:00
|
|
|
- fixturenet_geth_accounts:/geth-accounts:ro
|
2023-04-05 11:56:38 +00:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2023-03-24 11:53:54 +00:00
|
|
|
|
2023-03-20 12:55:39 +00:00
|
|
|
mobymask-watcher-server:
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
mobymask-watcher-db:
|
|
|
|
condition: service_healthy
|
2023-03-30 04:14:15 +00:00
|
|
|
mobymask:
|
2023-04-05 11:56:38 +00:00
|
|
|
condition: service_completed_successfully
|
2023-03-20 12:55:39 +00:00
|
|
|
image: cerc/watcher-mobymask-v2:local
|
2023-04-05 11:56:38 +00:00
|
|
|
env_file:
|
|
|
|
- ../config/watcher-mobymask-v2/optimism-params.env
|
2023-04-05 12:22:12 +00:00
|
|
|
command: ["sh", "start-server.sh"]
|
2023-03-20 12:55:39 +00:00
|
|
|
volumes:
|
2023-03-30 04:14:15 +00:00
|
|
|
- ../config/watcher-mobymask-v2/watcher-config-template.toml:/app/packages/mobymask-v2-watcher/environments/watcher-config-template.toml
|
2023-03-24 11:53:54 +00:00
|
|
|
- ../config/watcher-mobymask-v2/peer.env:/app/packages/peer/.env
|
2023-03-20 12:55:39 +00:00
|
|
|
- ../config/watcher-mobymask-v2/relay-id.json:/app/packages/mobymask-v2-watcher/relay-id.json
|
2023-03-30 04:14:15 +00:00
|
|
|
- ../config/watcher-mobymask-v2/peer-id.json:/app/packages/mobymask-v2-watcher/peer-id.json
|
2023-04-05 12:22:12 +00:00
|
|
|
- ../config/watcher-mobymask-v2/start-server.sh:/app/packages/mobymask-v2-watcher/start-server.sh
|
|
|
|
- mobymask_deployment:/server
|
2023-04-03 12:43:29 +00:00
|
|
|
- fixturenet_geth_accounts:/geth-accounts:ro
|
2023-03-20 12:55:39 +00:00
|
|
|
ports:
|
|
|
|
- "0.0.0.0:3001:3001"
|
|
|
|
- "0.0.0.0:9001:9001"
|
|
|
|
- "0.0.0.0:9090:9090"
|
|
|
|
healthcheck:
|
2023-03-24 11:53:54 +00:00
|
|
|
test: ["CMD", "busybox", "nc", "localhost", "9090"]
|
2023-03-20 12:55:39 +00:00
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 5s
|
2023-04-05 11:56:38 +00:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2023-03-20 12:55:39 +00:00
|
|
|
|
2023-04-03 12:43:29 +00:00
|
|
|
# TODO: Move to a separate pod
|
2023-03-24 11:53:54 +00:00
|
|
|
mobymask-app:
|
|
|
|
depends_on:
|
|
|
|
mobymask-watcher-server:
|
|
|
|
condition: service_healthy
|
|
|
|
mobymask:
|
2023-04-05 11:56:38 +00:00
|
|
|
condition: service_completed_successfully
|
2023-03-24 11:53:54 +00:00
|
|
|
image: cerc/mobymask-ui:local
|
|
|
|
command: ["sh", "mobymask-app-start.sh"]
|
|
|
|
volumes:
|
|
|
|
- ../config/watcher-mobymask-v2/mobymask-app.env:/app/.env
|
|
|
|
- ../config/watcher-mobymask-v2/mobymask-app-config.json:/app/src/mobymask-app-config.json
|
|
|
|
- ../config/watcher-mobymask-v2/mobymask-app-start.sh:/app/mobymask-app-start.sh
|
2023-04-05 12:22:12 +00:00
|
|
|
- mobymask_deployment:/server
|
2023-03-24 11:53:54 +00:00
|
|
|
ports:
|
|
|
|
- "0.0.0.0:3002:3000"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-v", "localhost", "3000"]
|
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 10s
|
|
|
|
shm_size: '1GB'
|
|
|
|
|
|
|
|
peer-test-app:
|
|
|
|
depends_on:
|
|
|
|
mobymask-watcher-server:
|
|
|
|
condition: service_healthy
|
|
|
|
image: cerc/react-peer:local
|
|
|
|
working_dir: /app/packages/test-app
|
|
|
|
command: ["sh", "-c", "yarn build && serve -s build"]
|
|
|
|
volumes:
|
|
|
|
- ../config/watcher-mobymask-v2/test-app-config.json:/app/packages/test-app/src/config.json
|
|
|
|
ports:
|
|
|
|
- "0.0.0.0:3003:3000"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-v", "localhost", "3000"]
|
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 10s
|
|
|
|
|
2023-03-20 12:55:39 +00:00
|
|
|
volumes:
|
|
|
|
mobymask_watcher_db_data:
|
2023-04-05 12:22:12 +00:00
|
|
|
mobymask_deployment:
|
2023-04-03 12:43:29 +00:00
|
|
|
fixturenet_geth_accounts:
|