-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.05 KB
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
services:
angkorim:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
config: /app/config/node1.yml
ANGKORIM_SERVER_HOST: 0.0.0.0
ANGKORIM_SERVER_PORT: 8080
volumes:
- ./config:/app/config
command: ["angkorim", "run", "--config", "/app/config/node1.yml"]
restart: unless-stopped
networks:
- angkorim-network
angkorim2:
build:
context: .
dockerfile: Dockerfile
ports:
- "8081:8080"
environment:
config: /app/config/node2.yml
ANGKORIM_SERVER_HOST: 0.0.0.0
ANGKORIM_SERVER_PORT: 8081
ANGKORIM_CLUSTER_PEERS_HOST: angkorim
ANGKORIM_CLUSTER_PEERS_SYNC_PORT: 8082
ANGKORIM_CLUSTER_PEERS_DISCOVERY_PORT: 8083
ANGKORIM_CLUSTER_PEERS_NODE_ID: 2
ANGKORIM_STORAGE_TYPE: memory
volumes:
- ./config:/app/config
command: ["angkorim", "run", "--config", "/app/config/node2.yml"]
restart: unless-stopped
networks:
- angkorim-network
networks:
angkorim-network:
driver: bridge