-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
82 lines (75 loc) · 1.81 KB
/
docker-compose.yml
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
version: '2'
services:
workspace:
build:
context: ./workspace
volumes_from:
- volumes_source
# if you want to start blockchain container automatically
# links:
# - testrpc
# - geth
# - ganache
# if you want to connect from host
# like localhost:3000
# ports:
# - "3000:3000"
# - "8080:8080"
tty: true
environment:
TESTRPC_PORT: 8545
GETH_RPC_PORT: 8545
GANACHE_RPC_PORT: 8545
networks:
- blockchain
geth:
build:
context: ./geth
volumes_from:
- volumes_data
# if you want to connect from host
# ports:
# - "8545:8545"
# - "8546:8546"
# - "30303:30303"
# - "30303/udp:30303/udp"
# random port
ports:
- "8545"
- "8546"
- "30303"
- "30303/udp"
# stdin_open: true
# tty: true
environment:
GOROOTBASE: /usr/local
GOROOT: /usr/local/go
GOPATH: /go
networks:
- blockchain
ganache:
build:
context: ./ganache
volumes_from:
- volumes_source
# if you want to connect from host
# like localhost:8545
# ports:
# - "8545:8545"
# random port
ports:
- "8545"
networks:
- blockchain
volumes_source:
build: ./volumes/application
volumes:
- ./app:/usr/share/app
volumes_data:
build: ./volumes/data
volumes:
- ./data/geth:/geth
- ./data/keystore:/keystore
networks:
blockchain:
driver: "bridge"