forked from aeternity/aepp-sophia-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (54 loc) · 1.51 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
# Small local network of three nodes using the fastest mean16
version: '3'
services:
node1:
image: aeternity/epoch:v1.0.0
hostname: node1
environment:
EPOCH_CONFIG: /home/epoch/epoch.yaml
command: >
-aehttp enable_debug_endpoints true
volumes:
- ./docker/epoch_node1_mean15.yaml:/home/epoch/epoch.yaml
- ./docker/keys/node1:/home/epoch/node/keys
- node1_db:/home/epoch/node/data/mnesia
node2:
image: aeternity/epoch:v1.0.0
hostname: node2
environment:
EPOCH_CONFIG: /home/epoch/epoch.yaml
command: >
-aehttp enable_debug_endpoints true
volumes:
- ./docker/epoch_node2_mean15.yaml:/home/epoch/epoch.yaml
- ./docker/keys/node2:/home/epoch/node/keys
- node2_db:/home/epoch/node/data/mnesia
node3:
image: aeternity/epoch:v1.0.0
hostname: node3
environment:
EPOCH_CONFIG: /home/epoch/epoch.yaml
command: >
-aehttp enable_debug_endpoints true
volumes:
- ./docker/epoch_node3_mean15.yaml:/home/epoch/epoch.yaml
- ./docker/keys/node3:/home/epoch/node/keys
- node3_db:/home/epoch/node/data/mnesia
proxy:
image: nginx:1.13.8
hostname: proxy
ports:
- "3001:3001"
- "3002:3002"
- "3003:3003"
volumes:
- ./docker/nginx-default.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx-cors.conf:/etc/nginx/cors.conf
- ./docker/nginx-ws.conf:/etc/nginx/ws.conf
volumes:
node1_db:
node1_keys:
node2_db:
node2_keys:
node3_db:
node3_keys: