|
| 1 | +version: "3.9" |
| 2 | + |
| 3 | +volumes: |
| 4 | + prometheus: |
| 5 | + driver: local |
| 6 | + alertmanager: |
| 7 | + driver: local |
| 8 | + postgres: |
| 9 | + driver: local |
| 10 | + ipfs: |
| 11 | + driver: local |
| 12 | + geth: |
| 13 | + driver: local |
| 14 | + erigon: |
| 15 | + driver: local |
| 16 | + prysm: |
| 17 | + driver: local |
| 18 | + lighthouse: |
| 19 | + driver: local |
| 20 | + |
| 21 | +networks: |
| 22 | + harbour_mainnet: |
| 23 | + name: harbour_mainnet |
| 24 | + driver: bridge |
| 25 | + |
| 26 | +services: |
| 27 | + oracle: |
| 28 | + container_name: oracle_harbour_mainnet |
| 29 | + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.5.1 |
| 30 | + restart: always |
| 31 | + entrypoint: ["python"] |
| 32 | + command: ["oracle/oracle/main.py"] |
| 33 | + env_file: [".env"] |
| 34 | + networks: |
| 35 | + - harbour_mainnet |
| 36 | + |
| 37 | + keeper: |
| 38 | + container_name: keeper_harbour_mainnet |
| 39 | + image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v2.5.1 |
| 40 | + restart: always |
| 41 | + entrypoint: ["python"] |
| 42 | + command: ["oracle/keeper/main.py"] |
| 43 | + env_file: [".env"] |
| 44 | + profiles: ["keeper"] |
| 45 | + networks: |
| 46 | + - harbour_mainnet |
| 47 | + |
| 48 | + prometheus: |
| 49 | + container_name: prometheus_harbour_mainnet |
| 50 | + image: bitnami/prometheus:2 |
| 51 | + restart: always |
| 52 | + env_file: [".env"] |
| 53 | + volumes: |
| 54 | + - prometheus:/opt/bitnami/prometheus/data |
| 55 | + - ../configs/prometheus.yml:/opt/bitnami/prometheus/conf/prometheus.yml |
| 56 | + - ../configs/rules.yml:/opt/bitnami/prometheus/conf/rules.yml |
| 57 | + networks: |
| 58 | + - harbour_mainnet |
| 59 | + |
| 60 | + alertmanager: |
| 61 | + container_name: alertmanager_harbour_mainnet |
| 62 | + image: bitnami/alertmanager:0 |
| 63 | + restart: always |
| 64 | + env_file: [".env"] |
| 65 | + volumes: |
| 66 | + - alertmanager:/opt/bitnami/alertmanager/data |
| 67 | + - ../configs/alertmanager.yml:/opt/bitnami/alertmanager/conf/config.yml |
| 68 | + depends_on: ["prometheus"] |
| 69 | + networks: |
| 70 | + - harbour_mainnet |
| 71 | + |
| 72 | + graph-node: |
| 73 | + container_name: graph_node_harbour_mainnet |
| 74 | + image: graphprotocol/graph-node:v0.25.2 |
| 75 | + restart: always |
| 76 | + env_file: [".env"] |
| 77 | + depends_on: ["postgres","ipfs"] |
| 78 | + profiles: ["graph"] |
| 79 | + networks: |
| 80 | + - harbour_mainnet |
| 81 | + |
| 82 | + postgres: |
| 83 | + container_name: postgres_harbour_mainnet |
| 84 | + image: postgres:14-alpine |
| 85 | + restart: always |
| 86 | + command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"] |
| 87 | + env_file: [".env"] |
| 88 | + volumes: ["postgres:/var/lib/postgresql/data"] |
| 89 | + profiles: ["graph"] |
| 90 | + networks: |
| 91 | + - harbour_mainnet |
| 92 | + |
| 93 | + subgraphs: |
| 94 | + container_name: subgraphs_harbour_mainnet |
| 95 | + image: europe-west4-docker.pkg.dev/stakewiselabs/public/subgraphs:v1.3.0 |
| 96 | + command: > |
| 97 | + /bin/sh -c "until nc -vz graph-node 8020; do echo 'Waiting graph-node'; sleep 2; done |
| 98 | + && yarn build:harbour_mainnet |
| 99 | + && yarn create:local |
| 100 | + && yarn deploy:local" |
| 101 | + env_file: [".env"] |
| 102 | + restart: "no" |
| 103 | + depends_on: ["graph-node","ipfs"] |
| 104 | + profiles: ["graph"] |
| 105 | + networks: |
| 106 | + - harbour_mainnet |
| 107 | + |
| 108 | + ipfs: |
| 109 | + container_name: ipfs_harbour_mainnet |
| 110 | + image: ipfs/go-ipfs:v0.12.1 |
| 111 | + restart: always |
| 112 | + env_file: [".env"] |
| 113 | + ulimits: |
| 114 | + nofile: |
| 115 | + soft: 8192 |
| 116 | + hard: 8192 |
| 117 | + volumes: ["ipfs:/data/ipfs","../configs/ipfs-entrypoint.sh:/usr/local/bin/start_ipfs"] |
| 118 | + profiles: ["ipfs"] |
| 119 | + networks: |
| 120 | + - harbour_mainnet |
| 121 | + |
| 122 | + geth: |
| 123 | + container_name: geth_harbour_mainnet |
| 124 | + image: ethereum/client-go:v1.10.16 |
| 125 | + restart: always |
| 126 | + command: |
| 127 | + - --mainnet |
| 128 | + - --syncmode=full |
| 129 | + - --http |
| 130 | + - --http.addr=0.0.0.0 |
| 131 | + - --http.vhosts=* |
| 132 | + - --http.api=web3,eth,net |
| 133 | + - --datadir=/data/ethereum |
| 134 | + - --ethash.dagdir=/data/ethereum/.ethash |
| 135 | + - --ipcdisable |
| 136 | + volumes: ["geth:/data"] |
| 137 | + profiles: ["geth"] |
| 138 | + networks: |
| 139 | + harbour_mainnet: |
| 140 | + aliases: |
| 141 | + - eth1-node |
| 142 | + |
| 143 | + erigon: |
| 144 | + container_name: erigon_harbour_mainnet |
| 145 | + image: thorax/erigon:v2022.03.02 |
| 146 | + restart: always |
| 147 | + command: |
| 148 | + - erigon |
| 149 | + - --chain=mainnet |
| 150 | + - --private.api.addr=0.0.0.0:9090 |
| 151 | + - --maxpeers=100 |
| 152 | + - --datadir=/home/erigon/.local/share/erigon |
| 153 | + - --batchSize=512M |
| 154 | + - --prune.r.before=11184524 |
| 155 | + - --prune=htc |
| 156 | + volumes: ["erigon:/home/erigon/.local/share/erigon"] |
| 157 | + profiles: ["erigon"] |
| 158 | + networks: |
| 159 | + - harbour_mainnet |
| 160 | + |
| 161 | + erigon-rpcdaemon: |
| 162 | + container_name: erigon_rpcdaemon_harbour_mainnet |
| 163 | + image: thorax/erigon:v2022.03.02 |
| 164 | + restart: always |
| 165 | + command: |
| 166 | + - rpcdaemon |
| 167 | + - --private.api.addr=erigon:9090 |
| 168 | + - --http.addr=0.0.0.0 |
| 169 | + - --http.vhosts=* |
| 170 | + - --http.corsdomain=* |
| 171 | + - --http.api=eth,erigon,web3,net,txpool |
| 172 | + - --ws |
| 173 | + depends_on: ["erigon"] |
| 174 | + profiles: ["erigon"] |
| 175 | + networks: |
| 176 | + harbour_mainnet: |
| 177 | + aliases: |
| 178 | + - eth1-node |
| 179 | + |
| 180 | + prysm: |
| 181 | + container_name: prysm_harbour_mainnet |
| 182 | + image: gcr.io/prysmaticlabs/prysm/beacon-chain:v2.0.6 |
| 183 | + restart: always |
| 184 | + command: |
| 185 | + - --prater |
| 186 | + - --genesis-state=/data/genesis.ssz |
| 187 | + - --datadir=/data |
| 188 | + - --rpc-host=0.0.0.0 |
| 189 | + - --rpc-port=5052 |
| 190 | + - --monitoring-host=0.0.0.0 |
| 191 | + - --http-web3provider=$ETH1_ENDPOINT |
| 192 | + - --slots-per-archive-point=64 |
| 193 | + - --accept-terms-of-use |
| 194 | + volumes: ["prysm:/data","../configs/genesis.ssz:/data/gensis.ssz"] |
| 195 | + profiles: ["prysm"] |
| 196 | + networks: |
| 197 | + harbour_mainnet: |
| 198 | + aliases: |
| 199 | + - eth2-node |
| 200 | + |
| 201 | + lighthouse: |
| 202 | + container_name: lighthouse_harbour_mainnet |
| 203 | + image: sigp/lighthouse:v2.1.5 |
| 204 | + restart: always |
| 205 | + command: |
| 206 | + - lighthouse |
| 207 | + - --network |
| 208 | + - prater |
| 209 | + - beacon |
| 210 | + - --http |
| 211 | + - --http-address=0.0.0.0 |
| 212 | + - --http-port=5052 |
| 213 | + - --eth1-endpoints |
| 214 | + - $ETH1_ENDPOINT |
| 215 | + volumes: ["lighthouse:/root/.lighthouse"] |
| 216 | + profiles: ["lighthouse"] |
| 217 | + networks: |
| 218 | + harbour_mainnet: |
| 219 | + aliases: |
| 220 | + - eth2-node |
0 commit comments