sushiswap-watcher-ts/stacks/stack-orchestrator/compose/docker-compose-watcher-sushiswap-v3.yml

79 lines
2.5 KiB
YAML
Raw Normal View History

2024-06-13 08:25:12 +00:00
version: '3.2'
services:
2024-06-13 09:15:05 +00:00
sushiswap-v3-watcher-db:
2024-06-13 08:25:12 +00:00
restart: unless-stopped
image: postgres:14-alpine
environment:
- POSTGRES_USER=vdbm
2024-06-13 09:15:05 +00:00
- POSTGRES_MULTIPLE_DATABASES=sushiswap-v3-watcher,sushiswap-v3-watcher-job-queue
- POSTGRES_EXTENSION=sushiswap-v3-watcher-job-queue:pgcrypto
2024-06-13 08:25:12 +00:00
- POSTGRES_PASSWORD=password
volumes:
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
2024-06-13 11:13:08 +00:00
- sushiswap_v3_watcher_db_data:/var/lib/postgresql/data
2024-06-13 08:25:12 +00:00
ports:
- "5432"
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "5432"]
interval: 20s
timeout: 5s
retries: 15
start_period: 10s
2024-06-13 09:15:05 +00:00
sushiswap-v3-watcher-job-runner:
2024-06-13 08:25:12 +00:00
restart: unless-stopped
depends_on:
2024-06-13 09:15:05 +00:00
sushiswap-v3-watcher-db:
2024-06-13 08:25:12 +00:00
condition: service_healthy
2024-06-13 11:18:15 +00:00
image: cerc/watcher-sushiswap:local
2024-06-13 08:25:12 +00:00
environment:
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
command: ["bash", "./start-job-runner.sh"]
volumes:
2024-06-13 09:15:05 +00:00
- ../config/watcher-sushiswap-v3/watcher-config-template.toml:/app/environments/watcher-config-template.toml
2024-06-13 13:23:22 +00:00
- ../config/watcher-sushiswap-v3/start-job-runner.sh:/app/packages/v3-watcher/start-job-runner.sh
2024-06-13 08:25:12 +00:00
ports:
- "9000: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"
2024-06-13 09:15:05 +00:00
sushiswap-v3-watcher-server:
2024-06-13 08:25:12 +00:00
restart: unless-stopped
depends_on:
2024-06-13 09:15:05 +00:00
sushiswap-v3-watcher-db:
2024-06-13 08:25:12 +00:00
condition: service_healthy
2024-06-13 09:15:05 +00:00
sushiswap-v3-watcher-job-runner:
2024-06-13 08:25:12 +00:00
condition: service_healthy
2024-06-13 11:18:15 +00:00
image: cerc/watcher-sushiswap:local
2024-06-13 08:25:12 +00:00
environment:
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
command: ["bash", "./start-server.sh"]
volumes:
2024-06-13 09:15:05 +00:00
- ../config/watcher-sushiswap-v3/watcher-config-template.toml:/app/environments/watcher-config-template.toml
2024-06-13 13:23:22 +00:00
- ../config/watcher-sushiswap-v3/start-server.sh:/app/packages/v3-watcher/start-server.sh
2024-06-13 11:13:08 +00:00
- sushiswap_v3_watcher_gql_logs_data:/app/gql-logs
2024-06-13 08:25:12 +00:00
ports:
2024-06-13 11:13:08 +00:00
- "3008"
- "9001"
2024-06-13 08:25:12 +00:00
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:
2024-06-13 11:13:08 +00:00
sushiswap_v3_watcher_db_data:
sushiswap_v3_watcher_gql_logs_data: