Avoid watcher db service and volume name conflicts across watchers

This commit is contained in:
Prathamesh Musale 2022-12-22 12:43:23 +05:30
parent db27533bd9
commit cfab542525
4 changed files with 12 additions and 12 deletions

View File

@ -2,7 +2,7 @@ version: '3.2'
services:
watcher-db:
erc20-watcher-db:
restart: unless-stopped
image: postgres:14-alpine
environment:
@ -12,7 +12,7 @@ services:
- POSTGRES_PASSWORD=password
volumes:
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
- watcher_db_data:/var/lib/postgresql/data
- erc20_watcher_db_data:/var/lib/postgresql/data
ports:
- "0.0.0.0:15432:5432"
healthcheck:
@ -27,7 +27,7 @@ services:
depends_on:
ipld-eth-server:
condition: service_healthy
watcher-db:
erc20-watcher-db:
condition: service_healthy
image: cerc/watcher-erc20:local
environment:
@ -46,4 +46,4 @@ services:
start_period: 5s
volumes:
watcher_db_data:
erc20_watcher_db_data:

View File

@ -2,7 +2,7 @@ version: '3.2'
services:
watcher-db:
erc721-watcher-db:
restart: unless-stopped
image: postgres:14-alpine
environment:
@ -12,7 +12,7 @@ services:
- POSTGRES_PASSWORD=password
volumes:
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
- watcher_db_data:/var/lib/postgresql/data
- erc721_watcher_db_data:/var/lib/postgresql/data
ports:
- "0.0.0.0:15432:5432"
healthcheck:
@ -27,7 +27,7 @@ services:
depends_on:
ipld-eth-server:
condition: service_healthy
watcher-db:
erc721-watcher-db:
condition: service_healthy
image: cerc/watcher-erc721:local
environment:
@ -46,4 +46,4 @@ services:
start_period: 5s
volumes:
watcher_db_data:
erc721_watcher_db_data:

View File

@ -12,7 +12,7 @@
[database]
type = "postgres"
host = "watcher-db"
host = "erc20-watcher-db"
port = 5432
database = "erc20-watcher"
username = "vdbm"
@ -32,7 +32,7 @@
deleteOnStart = false
[jobQueue]
dbConnectionString = "postgres://vdbm:password@watcher-db:5432/erc20-watcher-job-queue"
dbConnectionString = "postgres://vdbm:password@erc20-watcher-db:5432/erc20-watcher-job-queue"
maxCompletionLagInSecs = 300
jobDelayInMilliSecs = 100
eventsInBatch = 50

View File

@ -27,7 +27,7 @@
[database]
type = "postgres"
host = "watcher-db"
host = "erc721-watcher-db"
port = 5432
database = "erc721-watcher"
username = "vdbm"
@ -47,7 +47,7 @@
deleteOnStart = false
[jobQueue]
dbConnectionString = "postgres://vdbm:password@watcher-db:5432/erc721-watcher-job-queue"
dbConnectionString = "postgres://vdbm:password@erc721-watcher-db:5432/erc721-watcher-job-queue"
maxCompletionLagInSecs = 300
jobDelayInMilliSecs = 100
eventsInBatch = 50