This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
60 lines (56 loc) · 1.55 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
version: '3.7'
networks:
scalachain-network:
services:
seed:
networks:
- scalachain-network
image: elleflorio/scalachain
volumes:
- ~/Development/scala/scalachain/:/tmp/scalachain
ports:
- '2552:2552'
- '8000:8000'
environment:
SERVER_IP: 0.0.0.0
CLUSTER_IP: seed
CLUSTER_SEED_IP: seed
SCALACHAIN_PERSISTENCE_DIR: '/persistence/seed/journal'
SCALACHAIN_SNAPSHOTS_DIR: '/persistence/seed/snapshots'
command: ["local", "/tmp/scalachain"]
node1:
networks:
- scalachain-network
image: elleflorio/scalachain
volumes:
- ~/Development/scala/scalachain/:/tmp/scalachain
ports:
- '8001:8000'
environment:
SERVER_IP: 0.0.0.0
CLUSTER_IP: node1
CLUSTER_PORT: 1600
CLUSTER_SEED_IP: seed
CLUSTER_SEED_PORT: 2552
SCALACHAIN_NODE_ID: node1
SCALACHAIN_PERSISTENCE_DIR: '/persistence/node1/journal'
SCALACHAIN_SNAPSHOTS_DIR: '/persistence/node1/snapshots'
command: ["local", "/tmp/scalachain"]
node2:
networks:
- scalachain-network
image: elleflorio/scalachain
volumes:
- ~/Development/scala/scalachain/:/tmp/scalachain
ports:
- '8002:8000'
environment:
SERVER_IP: 0.0.0.0
CLUSTER_IP: node2
CLUSTER_PORT: 1600
CLUSTER_SEED_IP: seed
CLUSTER_SEED_PORT: 2552
SCALACHAIN_NODE_ID: node2
SCALACHAIN_PERSISTENCE_DIR: '/persistence/node2/journal'
SCALACHAIN_SNAPSHOTS_DIR: '/persistence/node2/snapshots'
command: ["local", "/tmp/scalachain"]