forked from aeternity/aeternity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.47 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
# Small local network of three nodes using the fastest mean16
version: '3'
services:
node1:
build: .
image: aetrnty/epoch
hostname: node1
environment:
EPOCH_CONFIG: /home/epoch/epoch.yaml
command: -aecore expected_mine_rate ${EPOCH_MINE_RATE:-15000}
volumes:
- ${PWD}/docker/epoch_node1_mean16.yaml:/home/epoch/epoch.yaml
- node1_db:/home/epoch/node/data/mnesia
- node1_keys:/home/epoch/node/keys
node2:
image: aetrnty/epoch
hostname: node2
environment:
EPOCH_CONFIG: /home/epoch/epoch.yaml
command: -aecore expected_mine_rate ${EPOCH_MINE_RATE:-15000}
volumes:
- ${PWD}/docker/epoch_node2_mean16.yaml:/home/epoch/epoch.yaml
- node2_db:/home/epoch/node/data/mnesia
- node2_keys:/home/epoch/node/keys
node3:
image: aetrnty/epoch
hostname: node3
environment:
EPOCH_CONFIG: /home/epoch/epoch.yaml
command: -aecore expected_mine_rate ${EPOCH_MINE_RATE:-15000}
volumes:
- ${PWD}/docker/epoch_node3_mean16.yaml:/home/epoch/epoch.yaml
- node3_db:/home/epoch/node/data/mnesia
- node3_keys:/home/epoch/node/keys
proxy:
image: nginx:1.13.8
hostname: proxy
ports:
- "3001:3001"
- "3002:3002"
- "3003:3003"
volumes:
- ${PWD}/docker/nginx-default.conf:/etc/nginx/conf.d/default.conf
- ${PWD}/docker/nginx-cors.conf:/etc/nginx/cors.conf
volumes:
node1_db:
node1_keys:
node2_db:
node2_keys:
node3_db:
node3_keys: