Skip to content

Commit

Permalink
Add mainnet harbour config (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsudmi authored May 26, 2022
1 parent 16fe38e commit 43a4aa5
Show file tree
Hide file tree
Showing 8 changed files with 159 additions and 72 deletions.
4 changes: 2 additions & 2 deletions deploy/gnosis/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ networks:
services:
oracle:
container_name: oracle_gnosis
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.4.1
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.5.0
restart: always
entrypoint: ["python"]
command: ["oracle/oracle/main.py"]
Expand All @@ -34,7 +34,7 @@ services:

keeper:
container_name: keeper_gnosis
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.4.1
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.5.0
restart: always
entrypoint: ["python"]
command: ["oracle/keeper/main.py"]
Expand Down
6 changes: 3 additions & 3 deletions deploy/goerli/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ networks:
services:
oracle:
container_name: oracle_goerli
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.4.1
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.5.0
restart: always
entrypoint: ["python"]
command: ["oracle/oracle/main.py"]
Expand All @@ -36,7 +36,7 @@ services:

keeper:
container_name: keeper_goerli
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.4.1
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.5.0
restart: always
entrypoint: ["python"]
command: ["oracle/keeper/main.py"]
Expand Down Expand Up @@ -92,7 +92,7 @@ services:

subgraphs:
container_name: subgraphs_goerli
image: europe-west4-docker.pkg.dev/stakewiselabs/public/subgraphs:v1.2.0
image: europe-west4-docker.pkg.dev/stakewiselabs/public/subgraphs:v1.3.0
command: >
/bin/sh -c "until nc -vz graph-node 8020; do echo 'Waiting graph-node'; sleep 2; done
&& yarn build:goerli
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Oracle #
##########
LOG_LEVEL=INFO
ENABLED_NETWORKS=perm_goerli
ENABLED_NETWORKS=harbour_goerli
ENABLE_HEALTH_SERVER=true
HEALTH_SERVER_PORT=8080
HEALTH_SERVER_HOST=0.0.0.0
Expand All @@ -15,31 +15,31 @@ IPFS_PINATA_API_KEY=<pinata_api_key>
IPFS_PINATA_SECRET_KEY=<pinata_secret_key>

# Change https://api.thegraph.com to http://graph-node:8000 if running local graph node
PERM_GOERLI_STAKEWISE_SUBGRAPH_URL=https://api.thegraph.com/subgraphs/name/stakewise/stakewise-perm-goerli
PERM_GOERLI_ETHEREUM_SUBGRAPH_URL=https://api.thegraph.com/subgraphs/name/stakewise/ethereum-goerli
HARBOUR_GOERLI_STAKEWISE_SUBGRAPH_URL=https://api.thegraph.com/subgraphs/name/stakewise/stakewise-perm-goerli
HARBOUR_GOERLI_ETHEREUM_SUBGRAPH_URL=https://api.thegraph.com/subgraphs/name/stakewise/ethereum-goerli

# Ethereum private key
# NB! You must use a different private key for every network
PERM_GOERLI_ORACLE_PRIVATE_KEY=0x<private_key>
HARBOUR_GOERLI_ORACLE_PRIVATE_KEY=0x<private_key>

# ETH2 (consensus) client endpoint
# Change if running an external ETH2 node
PERM_GOERLI_ETH2_ENDPOINT=http://eth2-node:5052
HARBOUR_GOERLI_ETH2_ENDPOINT=http://eth2-node:5052

# AWS bucket to publish oracle votes to
PERM_GOERLI_AWS_ACCESS_KEY_ID=<access_id>
PERM_GOERLI_AWS_SECRET_ACCESS_KEY=<secret_key>
PERM_GOERLI_AWS_BUCKET_NAME=oracle-votes-perm-goerli
PERM_GOERLI_AWS_REGION=eu-central-1
HARBOUR_GOERLI_AWS_ACCESS_KEY_ID=<access_id>
HARBOUR_GOERLI_AWS_SECRET_ACCESS_KEY=<secret_key>
HARBOUR_GOERLI_AWS_BUCKET_NAME=oracle-votes-perm-goerli
HARBOUR_GOERLI_AWS_REGION=eu-central-1

##########
# Keeper #
##########
# Change if running an external ETH1 node
PERM_GOERLI_KEEPER_ETH1_ENDPOINT=http://eth1-node:8545
HARBOUR_GOERLI_KEEPER_ETH1_ENDPOINT=http://eth1-node:8545
# Use https://eth-converter.com/ to calculate
PERM_GOERLI_KEEPER_MIN_BALANCE_WEI=100000000000000000
PERM_GOERLI_KEEPER_MAX_FEE_PER_GAS_GWEI=150
HARBOUR_GOERLI_KEEPER_MIN_BALANCE_WEI=100000000000000000
HARBOUR_GOERLI_KEEPER_MAX_FEE_PER_GAS_GWEI=150

########
# IPFS #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@ volumes:
driver: local

networks:
perm_goerli:
name: perm_goerli
harbour_goerli:
name: harbour_goerli
driver: bridge

services:
oracle:
container_name: oracle_perm_goerli
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.4.1
container_name: oracle_harbour_goerli
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.5.0
restart: always
entrypoint: ["python"]
command: ["oracle/oracle/main.py"]
env_file: [".env"]
networks:
- perm_goerli
- harbour_goerli

keeper:
container_name: keeper_perm_goerli
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.4.1
container_name: keeper_harbour_goerli
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.5.0
restart: always
entrypoint: ["python"]
command: ["oracle/keeper/main.py"]
env_file: [".env"]
profiles: ["keeper"]
networks:
- perm_goerli
- harbour_goerli

prometheus:
container_name: prometheus_perm_goerli
container_name: prometheus_harbour_goerli
image: bitnami/prometheus:2
restart: always
env_file: [".env"]
Expand All @@ -55,10 +55,10 @@ services:
- ../configs/prometheus.yml:/opt/bitnami/prometheus/conf/prometheus.yml
- ../configs/rules.yml:/opt/bitnami/prometheus/conf/rules.yml
networks:
- perm_goerli
- harbour_goerli

alertmanager:
container_name: alertmanager_perm_goerli
container_name: alertmanager_harbour_goerli
image: bitnami/alertmanager:0
restart: always
env_file: [".env"]
Expand All @@ -67,46 +67,46 @@ services:
- ../configs/alertmanager.yml:/opt/bitnami/alertmanager/conf/config.yml
depends_on: ["prometheus"]
networks:
- perm_goerli
- harbour_goerli

graph-node:
container_name: graph_node_perm_goerli
container_name: graph_node_harbour_goerli
image: graphprotocol/graph-node:v0.25.2
restart: always
env_file: [".env"]
depends_on: ["postgres","ipfs"]
profiles: ["graph"]
networks:
- perm_goerli
- harbour_goerli

postgres:
container_name: postgres_perm_goerli
container_name: postgres_harbour_goerli
image: postgres:14-alpine
restart: always
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
env_file: [".env"]
volumes: ["postgres:/var/lib/postgresql/data"]
profiles: ["graph"]
networks:
- perm_goerli
- harbour_goerli

subgraphs:
container_name: subgraphs_perm_goerli
image: europe-west4-docker.pkg.dev/stakewiselabs/public/subgraphs:v1.2.0
container_name: subgraphs_harbour_goerli
image: europe-west4-docker.pkg.dev/stakewiselabs/public/subgraphs:v1.3.0
command: >
/bin/sh -c "until nc -vz graph-node 8020; do echo 'Waiting graph-node'; sleep 2; done
&& yarn build:perm_goerli
&& yarn build:harbour_goerli
&& yarn create:local
&& yarn deploy:local"
env_file: [".env"]
restart: "no"
depends_on: ["graph-node","ipfs"]
profiles: ["graph"]
networks:
- perm_goerli
- harbour_goerli

ipfs:
container_name: ipfs_perm_goerli
container_name: ipfs_harbour_goerli
image: ipfs/go-ipfs:v0.12.1
restart: always
env_file: [".env"]
Expand All @@ -117,10 +117,10 @@ services:
volumes: ["ipfs:/data/ipfs","../configs/ipfs-entrypoint.sh:/usr/local/bin/start_ipfs"]
profiles: ["ipfs"]
networks:
- perm_goerli
- harbour_goerli

geth:
container_name: geth_perm_goerli
container_name: geth_harbour_goerli
image: ethereum/client-go:v1.10.16
restart: always
command:
Expand All @@ -136,12 +136,12 @@ services:
volumes: ["geth:/data"]
profiles: ["geth"]
networks:
perm_goerli:
harbour_goerli:
aliases:
- eth1-node

erigon:
container_name: erigon_perm_goerli
container_name: erigon_harbour_goerli
image: thorax/erigon:v2022.03.02
restart: always
command:
Expand All @@ -156,10 +156,10 @@ services:
volumes: ["erigon:/home/erigon/.local/share/erigon"]
profiles: ["erigon"]
networks:
- perm_goerli
- harbour_goerli

erigon-rpcdaemon:
container_name: erigon_rpcdaemon_perm_goerli
container_name: erigon_rpcdaemon_harbour_goerli
image: thorax/erigon:v2022.03.02
restart: always
command:
Expand All @@ -173,12 +173,12 @@ services:
depends_on: ["erigon"]
profiles: ["erigon"]
networks:
perm_goerli:
harbour_goerli:
aliases:
- eth1-node

prysm:
container_name: prysm_perm_goerli
container_name: prysm_harbour_goerli
image: gcr.io/prysmaticlabs/prysm/beacon-chain:v2.0.6
restart: always
command:
Expand All @@ -194,12 +194,12 @@ services:
volumes: ["prysm:/data","../configs/genesis.ssz:/data/gensis.ssz"]
profiles: ["prysm"]
networks:
perm_goerli:
harbour_goerli:
aliases:
- eth2-node

lighthouse:
container_name: lighthouse_perm_goerli
container_name: lighthouse_harbour_goerli
image: sigp/lighthouse:v2.1.5
restart: always
command:
Expand All @@ -215,6 +215,6 @@ services:
volumes: ["lighthouse:/root/.lighthouse"]
profiles: ["lighthouse"]
networks:
perm_goerli:
harbour_goerli:
aliases:
- eth2-node
6 changes: 3 additions & 3 deletions deploy/mainnet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ networks:
services:
oracle:
container_name: oracle_mainnet
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.4.1
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.5.0
restart: always
entrypoint: ["python"]
command: ["oracle/oracle/main.py"]
Expand All @@ -36,7 +36,7 @@ services:

keeper:
container_name: keeper_mainnet
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.4.1
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.5.0
restart: always
entrypoint: ["python"]
command: ["oracle/keeper/main.py"]
Expand Down Expand Up @@ -92,7 +92,7 @@ services:

subgraphs:
container_name: subgraphs_mainnet
image: europe-west4-docker.pkg.dev/stakewiselabs/public/subgraphs:v1.2.0
image: europe-west4-docker.pkg.dev/stakewiselabs/public/subgraphs:v1.3.0
command: >
/bin/sh -c "until nc -vz graph-node 8020; do echo 'Waiting graph-node'; sleep 2; done
&& yarn build:mainnet
Expand Down
Loading

0 comments on commit 43a4aa5

Please sign in to comment.