2022-12-22 06:03:39 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2022-12-22 07:43:59 +00:00
|
|
|
erc20-watcher-db:
|
2022-12-22 06:03:39 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
image: postgres:14-alpine
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=vdbm
|
|
|
|
- POSTGRES_MULTIPLE_DATABASES=erc20-watcher,erc20-watcher-job-queue
|
|
|
|
- POSTGRES_EXTENSION=erc20-watcher-job-queue:pgcrypto
|
|
|
|
- POSTGRES_PASSWORD=password
|
|
|
|
volumes:
|
|
|
|
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
|
2022-12-22 07:43:59 +00:00
|
|
|
- erc20_watcher_db_data:/var/lib/postgresql/data
|
2022-12-22 06:03:39 +00:00
|
|
|
ports:
|
2022-12-22 07:43:59 +00:00
|
|
|
- "0.0.0.0:15433:5432"
|
2022-12-22 06:03:39 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-v", "localhost", "5432"]
|
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 10s
|
|
|
|
|
|
|
|
erc20-watcher:
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
ipld-eth-server:
|
|
|
|
condition: service_healthy
|
2022-12-22 07:43:59 +00:00
|
|
|
erc20-watcher-db:
|
2022-12-22 06:03:39 +00:00
|
|
|
condition: service_healthy
|
|
|
|
image: cerc/watcher-erc20:local
|
|
|
|
environment:
|
|
|
|
- ETH_RPC_URL=http://go-ethereum:8545
|
|
|
|
command: ["sh", "-c", "yarn server"]
|
|
|
|
volumes:
|
2023-10-18 12:10:55 +00:00
|
|
|
- ../config/watcher-erc20/erc20-watcher.toml:/app/environments/local.toml
|
2022-12-22 06:03:39 +00:00
|
|
|
ports:
|
2022-12-22 07:43:59 +00:00
|
|
|
- "0.0.0.0:3002:3001"
|
|
|
|
- "0.0.0.0:9002:9001"
|
2022-12-22 06:03:39 +00:00
|
|
|
healthcheck:
|
2023-03-28 16:46:26 +00:00
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "3001"]
|
2022-12-22 06:03:39 +00:00
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 5s
|
|
|
|
|
|
|
|
volumes:
|
2022-12-22 07:43:59 +00:00
|
|
|
erc20_watcher_db_data:
|