stack-orchestrator/stack_orchestrator/data/compose/docker-compose-watcher-mobymask.yml

72 lines
2.0 KiB
YAML
Raw Permalink Normal View History

2022-11-06 16:49:05 +00:00
version: '3.2'
2022-11-08 05:22:54 +00:00
# TODO: remove hard-wired host ports
2022-11-06 16:49:05 +00:00
services:
mobymask-watcher-db:
2022-11-06 16:49:05 +00:00
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:
2022-11-08 05:22:54 +00:00
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
- mobymask_watcher_db_data:/var/lib/postgresql/data
2022-11-06 16:49:05 +00:00
ports:
- "0.0.0.0:15432:5432"
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "5432"]
interval: 20s
timeout: 5s
retries: 15
start_period: 10s
mobymask-watcher-job-runner:
2022-11-06 16:49:05 +00:00
restart: unless-stopped
depends_on:
mobymask-watcher-db:
2022-11-06 16:49:05 +00:00
condition: service_healthy
2022-11-07 00:45:32 +00:00
image: cerc/watcher-mobymask:local
command: ["sh", "-c", "yarn job-runner"]
2022-11-06 16:49:05 +00:00
volumes:
- ../config/watcher-mobymask/mobymask-watcher.toml:/app/environments/local.toml
2022-11-06 16:49:05 +00:00
ports:
- "0.0.0.0:9000:9000"
2022-11-08 06:17:56 +00:00
extra_hosts:
- "ipld-eth-server:host-gateway"
2022-11-06 16:49:05 +00:00
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "9000"]
2022-11-06 16:49:05 +00:00
interval: 20s
timeout: 5s
retries: 15
start_period: 5s
mobymask-watcher-server:
2022-11-06 16:49:05 +00:00
restart: unless-stopped
depends_on:
mobymask-watcher-db:
2022-11-06 16:49:05 +00:00
condition: service_healthy
mobymask-watcher-job-runner:
condition: service_healthy
2022-11-07 00:45:32 +00:00
image: cerc/watcher-mobymask:local
command: ["sh", "-c", "yarn server"]
2022-11-06 16:49:05 +00:00
volumes:
- ../config/watcher-mobymask/mobymask-watcher.toml:/app/environments/local.toml
2022-11-06 16:49:05 +00:00
ports:
- "0.0.0.0:3001:3001"
- "0.0.0.0:9001:9001"
2022-11-08 06:17:56 +00:00
extra_hosts:
- "ipld-eth-server:host-gateway"
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "3001"]
interval: 20s
timeout: 5s
retries: 15
start_period: 5s
2022-11-06 16:49:05 +00:00
volumes:
mobymask_watcher_db_data: