Skip to content

Instantly share code, notes, and snippets.

@timo-schmid
Last active February 26, 2018 23:24
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 timo-schmid/284252f5952283e37d1ce750cf2e3656 to your computer and use it in GitHub Desktop.
Save timo-schmid/284252f5952283e37d1ce750cf2e3656 to your computer and use it in GitHub Desktop.
Updated docker-compose.yml for grin
version: '3.3'
services:
#Node 1: genesis and miner from build.md example
grin-genesis-miner:
build:
context: ..
dockerfile: base-build/Dockerfile
image: grin-min
command: ["server", "--mine", "-w", "http://grin-genesis-wallet:13415", "run"]
environment:
- RUST_BACKTRACE=1
expose:
- "13413"
- "13414"
networks:
testnet:
ipv4_address: 172.50.0.2
depends_on:
- grin-genesis-wallet
volumes:
- "./data/genesis/node:/home/grinuser"
grin-genesis-wallet:
image: grin-min
command: ["wallet", "-p", "password", "-e", "listen"]
expose:
- "13415"
networks:
testnet:
ipv4_address: 172.50.0.3
volumes:
- "./data/genesis/wallet:/home/grinuser"
#Node 2: Regular node (not mining)
grin-regular-1:
image: grin-min
environment:
- RUST_BACKTRACE=1
command: ["server", "--seed=172.50.0.2:13414", "run"]
expose:
- "13414"
- "13415"
depends_on:
- grin-genesis-miner
networks:
testnet:
ipv4_address: 172.50.0.4
volumes:
- "./data/regular1/node:/home/grinuser"
#Node 3: regular node and wallet listener
grin-regular-2:
image: grin-min
command: ["server", "--seed=172.50.0.2:13414", "run"]
expose:
- "13414"
- "13415"
depends_on:
- grin-regular-2-wallet
- grin-genesis-miner
networks:
testnet:
ipv4_address: 172.50.0.5
volumes:
- "./data/regular2/node:/home/grinuser"
grin-regular-2-wallet:
image: grin-min
command: ["wallet", "-p", "password", "-a", "http://172.50.0.2:13413", "-e", "listen"]
expose:
- "13415"
networks:
testnet:
ipv4_address: 172.50.0.6
depends_on:
- grin-genesis-miner
volumes:
- "./data/regular2/wallet:/home/grinuser"
networks:
testnet:
driver: bridge
ipam:
config:
- subnet: 172.50.0.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment