2024-03-21 07:17:01 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
ajna-watcher-db:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: postgres:14-alpine
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=vdbm
|
|
|
|
- POSTGRES_MULTIPLE_DATABASES=ajna-watcher,ajna-watcher-job-queue
|
|
|
|
- POSTGRES_EXTENSION=ajna-watcher-job-queue:pgcrypto
|
|
|
|
- POSTGRES_PASSWORD=password
|
|
|
|
volumes:
|
|
|
|
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
|
|
|
|
- ajna_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
|
|
|
|
|
|
|
|
ajna-watcher-job-runner:
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
ajna-watcher-db:
|
|
|
|
condition: service_healthy
|
|
|
|
image: cerc/watcher-ajna:local
|
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
2024-05-10 04:58:30 +00:00
|
|
|
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
|
2024-03-21 07:17:01 +00:00
|
|
|
command: ["bash", "./start-job-runner.sh"]
|
|
|
|
volumes:
|
|
|
|
- ../config/watcher-ajna/watcher-config-template.toml:/app/environments/watcher-config-template.toml
|
|
|
|
- ../config/watcher-ajna/start-job-runner.sh:/app/start-job-runner.sh
|
|
|
|
ports:
|
|
|
|
- "9000"
|
|
|
|
healthcheck:
|
2024-05-10 04:58:30 +00:00
|
|
|
test: ["CMD", "nc", "-vz", "127.0.0.1", "9000"]
|
2024-03-21 07:17:01 +00:00
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 5s
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
ajna-watcher-server:
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
ajna-watcher-db:
|
|
|
|
condition: service_healthy
|
|
|
|
ajna-watcher-job-runner:
|
|
|
|
condition: service_healthy
|
|
|
|
image: cerc/watcher-ajna:local
|
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
2024-05-10 04:58:30 +00:00
|
|
|
CERC_ETH_RPC_ENDPOINTS: ${CERC_ETH_RPC_ENDPOINTS}
|
2024-03-21 07:17:01 +00:00
|
|
|
command: ["bash", "./start-server.sh"]
|
|
|
|
volumes:
|
|
|
|
- ../config/watcher-ajna/watcher-config-template.toml:/app/environments/watcher-config-template.toml
|
|
|
|
- ../config/watcher-ajna/start-server.sh:/app/start-server.sh
|
2024-06-12 11:52:51 +00:00
|
|
|
- ajna_watcher_gql_logs_data:/app/gql-logs
|
2024-03-21 07:17:01 +00:00
|
|
|
ports:
|
|
|
|
- "3008"
|
|
|
|
- "9001"
|
|
|
|
healthcheck:
|
2024-05-10 04:58:30 +00:00
|
|
|
test: ["CMD", "nc", "-vz", "127.0.0.1", "3008"]
|
2024-03-21 07:17:01 +00:00
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 5s
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
ajna_watcher_db_data:
|
2024-06-12 11:52:51 +00:00
|
|
|
ajna_watcher_gql_logs_data:
|