-
Notifications
You must be signed in to change notification settings - Fork 473
/
Copy pathcompose.yaml
47 lines (46 loc) · 988 Bytes
/
compose.yaml
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
volumes:
data1:
data2:
data3:
services:
backend1:
build:
context: .
dockerfile: Dockerfile.backend
image: python-blockchain-backend
environment:
FLASK_RUN_PORT: 8000
DATA_FILE: /data/chain.json
network_mode: "host"
volumes:
- "data1:/data"
backend2:
build:
context: .
dockerfile: Dockerfile.backend
image: python-blockchain-backend
environment:
FLASK_RUN_PORT: 8001
DATA_FILE: /data/chain.json
network_mode: "host"
volumes:
- "data2:/data"
backend3:
build:
context: .
dockerfile: Dockerfile.backend
image: python-blockchain-backend
environment:
FLASK_RUN_PORT: 8002
DATA_FILE: /data/chain.json
network_mode: "host"
volumes:
- "data3:/data"
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
image: python-blockchain-frontend
environment:
FLASK_RUN_PORT: 5000
network_mode: "host"