-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (84 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
89 lines (84 loc) · 2.03 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.8"
services:
node1:
build: .
container_name: credify-node1
ports:
- "5001:5000"
environment:
- NODE_ID=node1
- NODE_NAME=node1
- NODE_ADDRESS=http://node1:5000
- PORT=5000
- HOST=0.0.0.0
- BASE_URL=http://localhost:5000
- DATABASE_URL=sqlite:///data/node1.db
- SESSION_SECRET=node1-secret-key
- PEER_NODES=http://node2:5000,http://node3:5000
volumes:
- node1_data:/app/data
networks:
- blockchain-net
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5000/" ]
interval: 30s
timeout: 10s
retries: 3
node2:
build: .
container_name: credify-node2
ports:
- "5002:5000"
environment:
- NODE_ID=node2
- NODE_NAME=node2
- NODE_ADDRESS=http://node2:5000
- PORT=5000
- HOST=0.0.0.0
- BASE_URL=http://localhost:5000
- DATABASE_URL=sqlite:///data/node2.db
- SESSION_SECRET=node2-secret-key
- PEER_NODES=http://node1:5000,http://node3:5000
volumes:
- node2_data:/app/data
networks:
- blockchain-net
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5000/" ]
interval: 30s
timeout: 10s
retries: 3
node3:
build: .
container_name: credify-node3
ports:
- "5003:5000"
environment:
- NODE_ID=node3
- NODE_NAME=node3
- NODE_ADDRESS=http://node3:5000
- PORT=5000
- HOST=0.0.0.0
- BASE_URL=http://localhost:5000
- DATABASE_URL=sqlite:///data/node3.db
- SESSION_SECRET=node3-secret-key
- PEER_NODES=http://node1:5000,http://node2:5000
volumes:
- node3_data:/app/data
networks:
- blockchain-net
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5000/" ]
interval: 30s
timeout: 10s
retries: 3
networks:
blockchain-net:
driver: bridge
volumes:
node1_data:
node2_data:
node3_data: