-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (106 loc) · 2.41 KB
/
docker-compose.yml
File metadata and controls
113 lines (106 loc) · 2.41 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: "3.8"
services:
metadata:
build: .
container_name: dfs-metadata
command: /app/build/metaser /app/config/dfs.conf
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./database:/app/database
- ./config:/app/config
networks:
- dfs-network
restart: unless-stopped
healthcheck:
test: ["CMD", "sh", "-c", "nc -z localhost 9000 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
dataserver1:
build: .
container_name: dfs-dataserver1
command: /app/build/ser /app/config/dfs.conf 8000
ports:
- "8000:8000"
volumes:
- ./database:/app/database
- ./config:/app/config
networks:
- dfs-network
depends_on:
- metadata
restart: unless-stopped
healthcheck:
test: ["CMD", "sh", "-c", "nc -z localhost 8000 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
dataserver2:
build: .
container_name: dfs-dataserver2
command: /app/build/ser /app/config/dfs.conf 8001
ports:
- "8001:8001"
volumes:
- ./database:/app/database
- ./config:/app/config
networks:
- dfs-network
depends_on:
- metadata
restart: unless-stopped
healthcheck:
test: ["CMD", "sh", "-c", "nc -z localhost 8001 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
dataserver3:
build: .
container_name: dfs-dataserver3
command: /app/build/ser /app/config/dfs.conf 8002
ports:
- "8002:8002"
volumes:
- ./database:/app/database
- ./config:/app/config
networks:
- dfs-network
depends_on:
- metadata
restart: unless-stopped
healthcheck:
test: ["CMD", "sh", "-c", "nc -z localhost 8002 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
webclient:
build: .
container_name: dfs-webclient
command: /app/build/client_http /app/config/dfs.conf
ports:
- "8080:8080"
volumes:
- ./database:/app/database
- ./config:/app/config
- ./webclient:/app/webclient
networks:
- dfs-network
depends_on:
- metadata
- dataserver1
- dataserver2
- dataserver3
restart: unless-stopped
healthcheck:
test: ["CMD", "sh", "-c", "nc -z localhost 8080 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
networks:
dfs-network:
driver: bridge
volumes:
database:
config: