secured-finance-watcher-stack/stack-orchestrator/compose/docker-compose-watcher-secured-finance.yml
Prathamesh Musale f6ed97a044 Update watcher stack for latest watcher changes (#1)
Part of [Generate secured-finance subgraph watcher with codegen](https://www.notion.so/Generate-secured-finance-subgraph-watcher-with-codegen-2923413e0af54ea787c5435d6966f3bb)

Reviewed-on: #1
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-06-14 08:33:41 +00:00

79 lines
2.5 KiB
YAML

version: '3.2'
services:
secured-finance-watcher-db:
restart: unless-stopped
image: postgres:14-alpine
environment:
- POSTGRES_USER=vdbm
- POSTGRES_MULTIPLE_DATABASES=secured-finance-watcher,secured-finance-watcher-job-queue
- POSTGRES_EXTENSION=secured-finance-watcher-job-queue:pgcrypto
- POSTGRES_PASSWORD=password
volumes:
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
- secured_finance_watcher_db_data:/var/lib/postgresql/data
ports:
- "5432"
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "5432"]
interval: 20s
timeout: 5s
retries: 15
start_period: 10s
secured-finance-watcher-job-runner:
restart: unless-stopped
depends_on:
secured-finance-watcher-db:
condition: service_healthy
image: cerc/watcher-secured-finance:local
environment:
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
command: ["bash", "./start-job-runner.sh"]
volumes:
- ../config/watcher-secured-finance/watcher-config-template.toml:/app/environments/watcher-config-template.toml
- ../config/watcher-secured-finance/start-job-runner.sh:/app/start-job-runner.sh
ports:
- "9000"
healthcheck:
test: ["CMD", "nc", "-vz", "127.0.0.1", "9000"]
interval: 20s
timeout: 5s
retries: 15
start_period: 5s
extra_hosts:
- "host.docker.internal:host-gateway"
secured-finance-watcher-server:
restart: unless-stopped
depends_on:
secured-finance-watcher-db:
condition: service_healthy
secured-finance-watcher-job-runner:
condition: service_healthy
image: cerc/watcher-secured-finance:local
environment:
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
command: ["bash", "./start-server.sh"]
volumes:
- ../config/watcher-secured-finance/watcher-config-template.toml:/app/environments/watcher-config-template.toml
- ../config/watcher-secured-finance/start-server.sh:/app/start-server.sh
- secured_finance_watcher_gql_logs_data:/app/gql-logs
ports:
- "3008"
- "9001"
healthcheck:
test: ["CMD", "nc", "-vz", "127.0.0.1", "3008"]
interval: 20s
timeout: 5s
retries: 15
start_period: 5s
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
secured_finance_watcher_db_data:
secured_finance_watcher_gql_logs_data: