Skip to content

Instantly share code, notes, and snippets.

@Juan-cc
Created February 27, 2019 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Juan-cc/c1f06d3a113a77ecce6cface9ed9eddb to your computer and use it in GitHub Desktop.
Save Juan-cc/c1f06d3a113a77ecce6cface9ed9eddb to your computer and use it in GitHub Desktop.
version: "3"
services:
node:
container_name: node
image: gcr.io/gochain-core/gochain:${GOCHAIN_IMAGE:-latest}
ports:
# Netstats
- "80:80"
# Proxy
- "8545:8000"
# Explorer
- "8080:8080"
command: gochain --dev --rpc --metrics --pprof --netstats node:ironsecret@localhost
restart: always
netstats:
container_name: netstats
image: gcr.io/gochain-core/netstats:${NETSTATS_IMAGE:-latest}
environment:
- PORT=80
- WS_SECRET=ironsecret
network_mode: "service:node"
depends_on:
- node
restart: always
proxy:
container_name: proxy
image: gcr.io/gochain-core/rpc-proxy:${RPC_PROXY_IMAGE:-latest}
depends_on:
- node
network_mode: "service:node"
command: -port 8000 -url http://localhost:8545 -allow "eth_getCode,clique_getSnapshotAtHash,clique_getSignersAtHash,clique_getVotersAtHash,clique_getSnapshot,clique_getSigners,clique_getVoters,eth_chainId,eth_call,eth_blockNumber,eth_getBalance,eth_sendRawTransaction,eth_gasPrice,eth_estimateGas,net_version,eth_getTransaction,eth_getTransactionReceipt,eth_getTransactionCount,eth_getFilterChanges,net_listening,eth_getBlockByHash,eth_uninstallFilter,eth_getBlockByNumber,eth_newBlockFilter,eth_newPendingTransactionFilter,eth_totalSupply,eth_getLogs,eth_getStorageAt" -rpm 10000
restart: always
mongodb:
container_name: "mongodb"
image: mongo
network_mode: "service:node"
depends_on:
- node
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
command: mongod --smallfiles --logpath=/dev/null # --quiet
restart: always
explorer:
container_name: explorer
image: gcr.io/gochain-core/explorer:${EXPLORER_IMAGE:-latest}
network_mode: "service:node"
depends_on:
- node
- mongodb
command: "server -d /explorer/ -m localhost:27017 -u http://localhost:8545"
restart: always
grabber:
container_name: grabber
image: gcr.io/gochain-core/explorer:${EXPLORER_IMAGE:-latest}
network_mode: "service:node"
depends_on:
- node
- explorer
- mongodb
command: "grabber -m localhost:27017 -u http://localhost:8545"
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment