2023-11-13 05:43:55 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
merkl-sushiswap-v3-watcher-db:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: postgres:14-alpine
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=vdbm
|
|
|
|
- POSTGRES_MULTIPLE_DATABASES=merkl-sushiswap-v3-watcher,merkl-sushiswap-v3-watcher-job-queue
|
|
|
|
- POSTGRES_EXTENSION=merkl-sushiswap-v3-watcher-job-queue:pgcrypto
|
|
|
|
- POSTGRES_PASSWORD=password
|
|
|
|
volumes:
|
|
|
|
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
|
|
|
|
- merkl_sushiswap_v3_watcher_db_data:/var/lib/postgresql/data
|
|
|
|
ports:
|
2023-11-13 12:06:37 +00:00
|
|
|
- "5432"
|
2023-11-13 05:43:55 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-v", "localhost", "5432"]
|
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 10s
|
|
|
|
|
|
|
|
merkl-sushiswap-v3-watcher-job-runner:
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
merkl-sushiswap-v3-watcher-db:
|
|
|
|
condition: service_healthy
|
|
|
|
image: cerc/watcher-merkl-sushiswap-v3:local
|
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
2024-05-10 04:58:30 +00:00
|
|
|
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
|
2023-11-13 05:43:55 +00:00
|
|
|
command: ["bash", "./start-job-runner.sh"]
|
|
|
|
volumes:
|
|
|
|
- ../config/watcher-merkl-sushiswap-v3/watcher-config-template.toml:/app/environments/watcher-config-template.toml
|
|
|
|
- ../config/watcher-merkl-sushiswap-v3/start-job-runner.sh:/app/start-job-runner.sh
|
|
|
|
ports:
|
2023-12-13 09:28:26 +00:00
|
|
|
- "9002:9000"
|
2023-11-13 05:43:55 +00:00
|
|
|
healthcheck:
|
2024-05-10 04:58:30 +00:00
|
|
|
test: ["CMD", "nc", "-vz", "127.0.0.1", "9000"]
|
2023-11-13 05:43:55 +00:00
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 5s
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
merkl-sushiswap-v3-watcher-server:
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
merkl-sushiswap-v3-watcher-db:
|
|
|
|
condition: service_healthy
|
|
|
|
merkl-sushiswap-v3-watcher-job-runner:
|
|
|
|
condition: service_healthy
|
|
|
|
image: cerc/watcher-merkl-sushiswap-v3:local
|
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
2024-05-10 04:58:30 +00:00
|
|
|
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
|
2023-11-13 05:43:55 +00:00
|
|
|
command: ["bash", "./start-server.sh"]
|
|
|
|
volumes:
|
|
|
|
- ../config/watcher-merkl-sushiswap-v3/watcher-config-template.toml:/app/environments/watcher-config-template.toml
|
|
|
|
- ../config/watcher-merkl-sushiswap-v3/start-server.sh:/app/start-server.sh
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:3007:3008"
|
2023-12-13 09:28:26 +00:00
|
|
|
- "9003:9001"
|
2023-11-13 05:43:55 +00:00
|
|
|
healthcheck:
|
2024-05-10 04:58:30 +00:00
|
|
|
test: ["CMD", "nc", "-vz", "127.0.0.1", "3008"]
|
2023-11-13 05:43:55 +00:00
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 5s
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
merkl_sushiswap_v3_watcher_db_data:
|