-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.multi.yml
62 lines (58 loc) · 2.18 KB
/
docker-compose.multi.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
# Small local network of three nodes using the fastest mean15
version: '3'
services:
node1:
image: aeternity/aeternity:${IMAGE_TAG:-latest}
hostname: node1
environment:
AETERNITY_CONFIG: /home/aeternity/aeternity.yaml
command: >
bin/aeternity console -noinput -aecore expected_mine_rate ${AETERNITY_MINE_RATE:-15000}
volumes:
- ${PWD}/node/config/node1_mean15.yaml:/home/aeternity/aeternity.yaml
- ${PWD}/node/keys/node1:/home/aeternity/node/keys
- ${PWD}/node/accounts.json:/home/aeternity/node/data/aecore/.genesis/accounts_test.json
- ae_node1_db:/home/aeternity/node/data/mnesia
ports:
- "3013:3013"
- "3113:3113"
- "3014:3014"
node2:
image: aeternity/aeternity:${IMAGE_TAG-latest}
hostname: node2
environment:
AETERNITY_CONFIG: /home/aeternity/aeternity.yaml
command: >
bin/aeternity console -noinput -aecore expected_mine_rate ${AETERNITY_MINE_RATE:-15000}
volumes:
- ${PWD}/node/config/node2_mean15.yaml:/home/aeternity/aeternity.yaml
- ${PWD}/node/keys/node2:/home/aeternity/node/keys
- ${PWD}/node/accounts.json:/home/aeternity/node/data/aecore/.genesis/accounts_test.json
- ae_node2_db:/home/aeternity/node/data/mnesia
node3:
image: aeternity/aeternity:${IMAGE_TAG-latest}
hostname: node3
environment:
AETERNITY_CONFIG: /home/aeternity/aeternity.yaml
command: >
bin/aeternity console -noinput -aecore expected_mine_rate ${AETERNITY_MINE_RATE:-15000}
volumes:
- ${PWD}/node/config/node3_mean15.yaml:/home/aeternity/aeternity.yaml
- ${PWD}/node/keys/node3:/home/aeternity/node/keys
- ${PWD}/node/accounts.json:/home/aeternity/node/data/aecore/.genesis/accounts_test.json
- ae_node3_db:/home/aeternity/node/data/mnesia
nginx:
image: nginx:1.13.8
# In case a debug logging is needed
# command: [nginx-debug, '-g', 'daemon off;']
hostname: nginx
ports:
- "8080:8080"
volumes:
- ${PWD}/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ${PWD}/nginx/cors.conf:/etc/nginx/cors.conf
- ${PWD}/nginx/ws.conf:/etc/nginx/ws.conf
volumes:
ae_node1_db:
ae_node2_db:
ae_node3_db: