Change watcher db service name
This commit is contained in:
parent
aa37d1f11a
commit
02bbef8861
@ -4,7 +4,7 @@ version: '3.2'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
watcher-db:
|
mobymask-watcher-db:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: postgres:14-alpine
|
image: postgres:14-alpine
|
||||||
environment:
|
environment:
|
||||||
@ -14,7 +14,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
|
- mobymask_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:
|
|||||||
mobymask-watcher-server:
|
mobymask-watcher-server:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
watcher-db:
|
mobymask-watcher-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
image: cerc/watcher-mobymask:local
|
image: cerc/watcher-mobymask:local
|
||||||
command: ["sh", "-c", "yarn server"]
|
command: ["sh", "-c", "yarn server"]
|
||||||
@ -50,7 +50,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
mobymask-watcher-server:
|
mobymask-watcher-server:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
watcher-db:
|
mobymask-watcher-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
image: cerc/watcher-mobymask:local
|
image: cerc/watcher-mobymask:local
|
||||||
command: ["sh", "-c", "yarn job-runner"]
|
command: ["sh", "-c", "yarn job-runner"]
|
||||||
@ -62,4 +62,4 @@ services:
|
|||||||
- "ipld-eth-server:host-gateway"
|
- "ipld-eth-server:host-gateway"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
watcher_db_data:
|
mobymask_watcher_db_data:
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
[database]
|
[database]
|
||||||
type = "postgres"
|
type = "postgres"
|
||||||
host = "watcher-db"
|
host = "mobymask-watcher-db"
|
||||||
port = 5432
|
port = 5432
|
||||||
database = "mobymask-watcher"
|
database = "mobymask-watcher"
|
||||||
username = "vdbm"
|
username = "vdbm"
|
||||||
@ -37,8 +37,8 @@
|
|||||||
|
|
||||||
[upstream]
|
[upstream]
|
||||||
[upstream.ethServer]
|
[upstream.ethServer]
|
||||||
gqlApiEndpoint = "http://ipld-eth-server:8082/graphql"
|
gqlApiEndpoint = "http://ipld-eth-server:8083/graphql"
|
||||||
rpcProviderEndpoint = "http://ipld-eth-server:8081"
|
rpcProviderEndpoint = "http://ipld-eth-server:8082"
|
||||||
blockDelayInMilliSecs = 60000
|
blockDelayInMilliSecs = 60000
|
||||||
|
|
||||||
[upstream.cache]
|
[upstream.cache]
|
||||||
@ -47,7 +47,7 @@
|
|||||||
deleteOnStart = false
|
deleteOnStart = false
|
||||||
|
|
||||||
[jobQueue]
|
[jobQueue]
|
||||||
dbConnectionString = "postgres://vdbm:password@watcher-db/mobymask-watcher-job-queue"
|
dbConnectionString = "postgres://vdbm:password@mobymask-watcher-db/mobymask-watcher-job-queue"
|
||||||
maxCompletionLagInSecs = 300
|
maxCompletionLagInSecs = 300
|
||||||
jobDelayInMilliSecs = 100
|
jobDelayInMilliSecs = 100
|
||||||
eventsInBatch = 50
|
eventsInBatch = 50
|
||||||
|
@ -16,13 +16,13 @@ $ laconic-so build-containers --include cerc/watcher-mobymask
|
|||||||
```
|
```
|
||||||
This should create a container with tag `cerc/watcher-mobymask` in the local image registry.
|
This should create a container with tag `cerc/watcher-mobymask` in the local image registry.
|
||||||
## Deploy the stack
|
## Deploy the stack
|
||||||
First the watcher database has to be initialized. Start only the watcher-db service:
|
First the watcher database has to be initialized. Start only the mobymask-watcher-db service:
|
||||||
```
|
```
|
||||||
$ laconic-so deploy-system --include watcher-mobymask up watcher-db
|
$ laconic-so deploy-system --include watcher-mobymask up mobymask-watcher-db
|
||||||
```
|
```
|
||||||
Next find the container's id using `docker ps` then run the following command to initialize the database:
|
Next find the container's id using `docker ps` then run the following command to initialize the database:
|
||||||
```
|
```
|
||||||
$ docker exec -i <watcher-db-container> psql -U vdbm mobymask-watcher < config/watcher-mobymask/mobymask-watcher-db.sql
|
$ docker exec -i <mobymask-watcher-db-container> psql -U vdbm mobymask-watcher < config/watcher-mobymask/mobymask-watcher-db.sql
|
||||||
```
|
```
|
||||||
Finally start the remaining containers:
|
Finally start the remaining containers:
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user