Avoid watcher db service and volume name conflicts across watchers
This commit is contained in:
parent
db27533bd9
commit
cfab542525
@ -2,7 +2,7 @@ version: '3.2'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
watcher-db:
|
erc20-watcher-db:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: postgres:14-alpine
|
image: postgres:14-alpine
|
||||||
environment:
|
environment:
|
||||||
@ -12,7 +12,7 @@ services:
|
|||||||
- POSTGRES_PASSWORD=password
|
- POSTGRES_PASSWORD=password
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
|
- ../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:
|
ports:
|
||||||
- "0.0.0.0:15432:5432"
|
- "0.0.0.0:15432:5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@ -27,7 +27,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
ipld-eth-server:
|
ipld-eth-server:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
watcher-db:
|
erc20-watcher-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
image: cerc/watcher-erc20:local
|
image: cerc/watcher-erc20:local
|
||||||
environment:
|
environment:
|
||||||
@ -46,4 +46,4 @@ services:
|
|||||||
start_period: 5s
|
start_period: 5s
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
watcher_db_data:
|
erc20_watcher_db_data:
|
||||||
|
@ -2,7 +2,7 @@ version: '3.2'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
watcher-db:
|
erc721-watcher-db:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: postgres:14-alpine
|
image: postgres:14-alpine
|
||||||
environment:
|
environment:
|
||||||
@ -12,7 +12,7 @@ services:
|
|||||||
- POSTGRES_PASSWORD=password
|
- POSTGRES_PASSWORD=password
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/postgresql/multiple-postgressql-databases.sh:/docker-entrypoint-initdb.d/multiple-postgressql-databases.sh
|
- ../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:
|
ports:
|
||||||
- "0.0.0.0:15432:5432"
|
- "0.0.0.0:15432:5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@ -27,7 +27,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
ipld-eth-server:
|
ipld-eth-server:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
watcher-db:
|
erc721-watcher-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
image: cerc/watcher-erc721:local
|
image: cerc/watcher-erc721:local
|
||||||
environment:
|
environment:
|
||||||
@ -46,4 +46,4 @@ services:
|
|||||||
start_period: 5s
|
start_period: 5s
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
watcher_db_data:
|
erc721_watcher_db_data:
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
[database]
|
[database]
|
||||||
type = "postgres"
|
type = "postgres"
|
||||||
host = "watcher-db"
|
host = "erc20-watcher-db"
|
||||||
port = 5432
|
port = 5432
|
||||||
database = "erc20-watcher"
|
database = "erc20-watcher"
|
||||||
username = "vdbm"
|
username = "vdbm"
|
||||||
@ -32,7 +32,7 @@
|
|||||||
deleteOnStart = false
|
deleteOnStart = false
|
||||||
|
|
||||||
[jobQueue]
|
[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
|
maxCompletionLagInSecs = 300
|
||||||
jobDelayInMilliSecs = 100
|
jobDelayInMilliSecs = 100
|
||||||
eventsInBatch = 50
|
eventsInBatch = 50
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
[database]
|
[database]
|
||||||
type = "postgres"
|
type = "postgres"
|
||||||
host = "watcher-db"
|
host = "erc721-watcher-db"
|
||||||
port = 5432
|
port = 5432
|
||||||
database = "erc721-watcher"
|
database = "erc721-watcher"
|
||||||
username = "vdbm"
|
username = "vdbm"
|
||||||
@ -47,7 +47,7 @@
|
|||||||
deleteOnStart = false
|
deleteOnStart = false
|
||||||
|
|
||||||
[jobQueue]
|
[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
|
maxCompletionLagInSecs = 300
|
||||||
jobDelayInMilliSecs = 100
|
jobDelayInMilliSecs = 100
|
||||||
eventsInBatch = 50
|
eventsInBatch = 50
|
||||||
|
Loading…
Reference in New Issue
Block a user