-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
116 lines (116 loc) · 3.5 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '2.2'
services:
geth:
container_name: geth
build:
context: images/geth
args:
GETH_VERSION: 1.7.0
GETH_COMMIT: 6c6c7b2a
GETH_MD5SUM: 4f19032a835cdbdc0cca4086b788479a
SOLIDITY_VERSION: 0.4.17
SOLIDITY_MD5SUM: e80124f66673c82843ef0e4d829f5983
image: ${DOCKER_ORG:-telephoneorg}/geth-tools:latest
environment:
NETWORK_ID: '111771'
GETH_VERBOSITY: '3'
GETH_DB_CACHE: '128'
TEST_COMMAND: geth
GETH_NAT: 'none'
# DEBUG: 'true'
GETH_RPC_MODULES: net,admin,personal,web3,eth,db,shh
GETH_NETRESTRICT_CIDR: 172.18.0.0/16
# BOOT_NODES: enode://9245a7bd22d89136c980c8f28bbdcdc79ea282e60b7b9e942bc8c0cfc7f33514fea963a3cfe69f8aa4bf9f35b456620ee77df98f5af91a704249e955c493608d@172.18.0.2:30301
networks:
local:
ports:
- "8545:8545"
- "8546:8546"
# - "30303:30303"
# - "30303:30303/udp"
# - "30304:30304/udp"
# volumes:
# - "$PWD/local/keystore:/opt/geth/.ethereum/private-111771/keystore"
# - "$PWD/local/genesis.json:/opt/geth/.ethereum/private-111771/config/genesis.json"
swarm:
container_name: swarm
image: ${DOCKER_ORG:-telephoneorg}/geth-tools:latest
environment:
NETWORK_ID: '111771'
SWARM_VERBOSITY: '3'
# SWARM_BZZ_ACCOUNT_PASS: testtest
DEBUG: 'true'
# SWARM_ENABLE_SWAP: 'true'
TEST_COMMAND: swarm
ports:
- "8500:8500"
# - "30399:30399"
# - "30399:30399/udp"
command: swarm-wrap
# volumes:
# - "$PWD/local/keys/1:/opt/geth/.ethereum/private-111771/keystore"
networks:
local:
depends_on:
geth:
condition: service_healthy
# swarm2:
# container_name: swarm2
# image: ${DOCKER_ORG:-telephoneorg}/geth-tools:latest
# environment:
# NETWORK_ID: '111771'
# SWARM_VERBOSITY: '3'
# SWARM_ENABLE_SWAP: 'true'
# # SWARM_BZZ_ACCOUNT_PASS: testtest
# # DEBUG: 'true'
# # TEST_COMMAND: swarm
# # ports:
# # - "8500:8500"
# # - "30399:30399"
# # - "30399:30399/udp"
# command: swarm-wrap
# # volumes:
# # - "$PWD/local/keys/2:/opt/geth/.ethereum/private-111771/keystore"
# networks:
# local:
# depends_on:
# geth:
# condition: service_healthy
# bootnode:
# container_name: bootnode
# image: ${DOCKER_ORG:-telephoneorg}/geth-tools:latest
# command: bootnode-wrap
# environment:
# # DEBUG: 'true'
# BOOTNODE_NAT: none
# TEST_COMMAND: bootnode
# BOOTNODE_VERBOSITY: '5'
# BOOTNODE_NETRESTRICT_CIDR: 172.18.0.0/16
# volumes:
# - "$PWD/local/boot.key:/opt/geth/.ethereum/bootnode/boot.key"
# # ports:
# # - "30301:30301/udp"
# networks:
# local:
# miner:
# container_name: miner
# image: ${DOCKER_ORG:-telephoneorg}/geth-tools:latest
# environment:
# NETWORK_ID: '111771'
# GETH_VERBOSITY: '3'
# GETH_SYNC_MODE: full
# GETH_NAT: 'none'
# # DEBUG: 'true'
# GETH_NETRESTRICT_CIDR: 172.18.0.0/16
# GETH_MINE: 'true'
# GETH_MINER_THREADS: '1'
# BOOT_NODES: enode://9245a7bd22d89136c980c8f28bbdcdc79ea282e60b7b9e942bc8c0cfc7f33514fea963a3cfe69f8aa4bf9f35b456620ee77df98f5af91a704249e955c493608d@172.18.0.2:30301
# volumes:
# - "$PWD/local/keystore:/opt/geth/.ethereum/private-111771/keystore"
# - "$PWD/local/genesis.json:/opt/geth/.ethereum/private-111771/config/genesis.json"
# networks:
# local:
# cpus: 0.5
# mem_limit: 1gb
networks:
local: