fix broken docker-compose-watcher.yml file
MODIFY
README.md
README.md
@@ -81,18 +81,18 @@ To bring the entire system up:
docker-compose up
```
-To bring only specific services up (eg: the childchain service):
+To bring only specific services up (eg: the childchain service, geth, etc...):
```sh
-docker-compose up childchain
+docker-compose up childchain geth ...
```
_(Note: This will also bring up any services childchain depends on.)_
-To override and run specific Watcher code use:
+To run a Watcher only, first make sure you sent an ENV variable called with `INFURA_API_KEY` with your api key and then run:
```sh
-docker-compose -f docker-compose.yml -f docker-compose-watcher.yml up
+docker-compose -f docker-compose-watcher.yml up
```
### Get the deployed contract details

MODIFY
docker-compose-watcher.yml
docker-compose-watcher.yml
version: "2.1"
services:
+ postgres:
+ image: postgres:9.6.13-alpine
+ restart: always
+ ports:
+ - "5433:5432"
+ environment:
+ POSTGRES_USER: omisego_dev
+ POSTGRES_PASSWORD: omisego_dev
+ POSTGRES_DB: omisego_dev
+ healthcheck:
+ test: pg_isready -U omisego_dev
+ interval: 5s
+ timeout: 3s
+ retries: 5
+
watcher:
image: omisego/watcher:latest
command: "full_local"
- build:
- context: ./
- dockerfile: Dockerfile.watcher
environment:
- ETHEREUM_RPC_URL=https://rinkeby.infura.io/v3/${INFURA_API_KEY}
- ETHEREUM_WS_RPC_URL=wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}

fix broken docker-compose-watcher.yml file