fixes
This commit is contained in:
@@ -1,24 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
goat-testnet-init:
|
|
||||||
image: ghcr.io/goatnetwork/goat-geth:testnet
|
|
||||||
pull_policy: always
|
|
||||||
entrypoint: ["sh", "-c"]
|
|
||||||
command: [ ! -d /root/.ethereum/geth/chaindata ] && geth init /genesis/geth.json
|
|
||||||
environment:
|
|
||||||
- "GETH_STATE_SCHEME=path"
|
|
||||||
- "GETH_DB_ENGINE=pebble"
|
|
||||||
volumes:
|
|
||||||
- goat-testnet:/root/.ethereum
|
|
||||||
- ./goat/testnet:/genesis
|
|
||||||
|
|
||||||
goat-testnet:
|
goat-testnet:
|
||||||
image: ghcr.io/goatnetwork/goat-geth:testnet
|
image: ghcr.io/goatnetwork/goat-geth:testnet
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
stop_grace_period: 5m
|
stop_grace_period: 30s
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
|
||||||
- goat-testnet-init
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "geth attach --exec eth.blockNumber"]
|
test: ["CMD-SHELL", "geth attach --exec eth.blockNumber"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -27,22 +14,21 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- "GETH_STATE_SCHEME=path"
|
- "GETH_STATE_SCHEME=path"
|
||||||
- "GETH_DB_ENGINE=pebble"
|
- "GETH_DB_ENGINE=pebble"
|
||||||
command:
|
- "GETH_DISCOVERY_PORT=18141"
|
||||||
- --http
|
- "GETH_PORT=18141"
|
||||||
- --http.api=eth,net,web3
|
- "GETH_HTTP=true"
|
||||||
- --http.addr=0.0.0.0
|
- "GETH_HTTP_ADDR=0.0.0.0"
|
||||||
- --http.vhosts=*
|
- "GETH_HTTP_API=web3,eth,admin,net"
|
||||||
- --http.corsdomain=*
|
- "GETH_HTTP_VHOSTS=*"
|
||||||
- --ws
|
- "GETH_WS=true"
|
||||||
- --ws.addr=0.0.0.0
|
- "GETH_WS_ADDR=0.0.0.0"
|
||||||
- --ws.port=8545
|
- "GETH_WS_API=web3,eth,net,admin"
|
||||||
- --ws.origins=*
|
- "GETH_WS_ORIGINS=*"
|
||||||
- --metrics
|
- "GETH_WS_PORT=8545"
|
||||||
- --metrics.addr=0.0.0.0
|
- "GETH_NAT=extip:${IP}"
|
||||||
- --metrics.port=6060
|
- "GETH_SYNCMODE=full"
|
||||||
- --syncmode=full
|
- "GETH_BOOTNODES=enode://0d41d098846751f0f90ea66e4d7e6741591e9c4bfb6e75d14f78ca3702415fb795adad64b2805f428c86f6ae2ee5315322301e02c63c917f92756a909679599e@52.12.249.134:30303"
|
||||||
- --port=18141
|
entrypoint: /entrypoint.sh
|
||||||
- --bootnodes=enode://0d41d098846751f0f90ea66e4d7e6741591e9c4bfb6e75d14f78ca3702415fb795adad64b2805f428c86f6ae2ee5315322301e02c63c917f92756a909679599e@52.12.249.134:30303
|
|
||||||
expose:
|
expose:
|
||||||
- 8545
|
- 8545
|
||||||
- 6060
|
- 6060
|
||||||
@@ -51,6 +37,8 @@ services:
|
|||||||
- "18141:18141/udp"
|
- "18141:18141/udp"
|
||||||
volumes:
|
volumes:
|
||||||
- "goat-testnet:/root/.ethereum"
|
- "goat-testnet:/root/.ethereum"
|
||||||
|
- ./goat/testnet:/genesis
|
||||||
|
- ./goat/geth-entrypoint.sh:/entrypoint.sh
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.middlewares.goat-testnet-stripprefix.stripprefix.prefixes=/goat-testnet"
|
- "traefik.http.middlewares.goat-testnet-stripprefix.stripprefix.prefixes=/goat-testnet"
|
||||||
@@ -62,40 +50,24 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- chains
|
- chains
|
||||||
|
|
||||||
goat-testnet-node-init:
|
|
||||||
image: ghcr.io/goatnetwork/goat:testnet
|
|
||||||
pull_policy: always
|
|
||||||
entrypoint: ["sh", "-c"]
|
|
||||||
command: [ ! -f /goat/config/genesis.json ] && goatd init --home /goat testnet && cp /genesis/goat.json /goat/config/genesis.json
|
|
||||||
volumes:
|
|
||||||
- goat-testnet-node:/goat
|
|
||||||
- ./goat/testnet:/genesis
|
|
||||||
|
|
||||||
|
|
||||||
goat-testnet-node:
|
goat-testnet-node:
|
||||||
image: ghcr.io/goatnetwork/goat:testnet
|
image: ghcr.io/goatnetwork/goat:testnet
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
stop_grace_period: 30s
|
stop_grace_period: 30s
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command:
|
entrypoint: /entrypoint.sh
|
||||||
- --home
|
environment:
|
||||||
- /goat
|
- "IP=${IP}"
|
||||||
- --goat.geth
|
|
||||||
- /geth/geth.ipc
|
|
||||||
- --api.enable
|
|
||||||
- --api.address=tcp://0.0.0.0:1317
|
|
||||||
- --p2p.persistent_peers
|
|
||||||
- c9befb6b8421b46ec5cda76171a8cf7539af20fc@52.12.249.134:26656
|
|
||||||
volumes:
|
volumes:
|
||||||
- "goat-testnet-node:/goat"
|
- "goat-testnet-node:/goat"
|
||||||
- "goat-testnet:/geth"
|
- "goat-testnet:/geth"
|
||||||
|
- ./goat/testnet:/genesis
|
||||||
|
- ./goat/node-entrypoint.sh:/entrypoint.sh
|
||||||
depends_on:
|
depends_on:
|
||||||
goat-testnet:
|
- goat-testnet
|
||||||
condition: service_healthy
|
|
||||||
goat-testnet-node-init:
|
|
||||||
networks:
|
networks:
|
||||||
- chains
|
- chains
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
goat-testnet:
|
goat-testnet:
|
||||||
goat-testnet-node:
|
goat-testnet-node:
|
||||||
|
|||||||
Reference in New Issue
Block a user