forked from sammy007/open-ethereum-pool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (54 loc) · 1.27 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
version: '3'
volumes:
open-ethereum-pool-api-vol:
open-ethereum-pool-www-vol:
open-ethereum-pool-redis-vol:
services:
oep-api:
working_dir: /go/src/github.com/sammy007/open-ethereum-pool
command: bash -c "go get -v ./... && go run main.go config.json"
image: golang:1.8
volumes:
- open-ethereum-pool-api-vol:/go
- ./:/go/src/github.com/sammy007/open-ethereum-pool
links:
- redis
- geth-1
- geth-2
ports:
- "8081:8080"
- "8888:8888"
- "8008:8008"
redis:
image: redis:3.0.7
volumes:
- open-ethereum-pool-redis-vol:/data
ports:
- 6379
geth-1:
image: ethereum/client-go:latest
command: geth --rpc --rpcaddr 0.0.0.0 --cache=512 init /genesis.json
ports:
- 8545
- 30303
volumes:
- ./genesis.json:/genesis.json
- ~/ethereum:/root
geth-2:
image: ethereum/client-go:latest
command: geth --rpc --rpcaddr 0.0.0.0 --cache=512 init /genesis.json
ports:
- 8545
- 30303
volumes:
- ./genesis.json:/genesis.json
- ~/ethereum:/root
nginx:
image: nginx:1.13.1
volumes:
- ./misc/nginx-default.conf:/etc/nginx/conf.d/default.conf:ro
- ./www:/www:ro
ports:
- "8080:80"
links:
- oep-api