-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
82 lines (74 loc) · 1.62 KB
/
docker-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
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
version: '3.8'
x-shared-config: &shared-config
build:
dockerfile: devops/Dockerfile
context: .
entrypoint: [ "/storage" ]
environment:
HOST: "0.0.0.0"
PORT: 5555
DIRECTORY: "/files"
services:
rest:
container_name: rest
build:
dockerfile: devops/Dockerfile
context: .
entrypoint: [ "/rest" ]
environment:
HOST: "0.0.0.0"
PORT: 8080
META_FILE: /files/meta.json
STORAGES: "storage-01:5555,storage-02:5555,storage-03:5555,storage-04:5555,storage-05:5555,storage-06:5555"
WEIGHTS: "1,1,1,1,1,1"
MAX_CONNECTIONS: 1000
MAX_BODY_SIZE: 1073741824
CHUNK_SIZE: 8192
MIN_PART_SIZE: 8192
MAX_PARTS: 6
volumes:
- ./files/meta:/files
ports:
- "8080:8080"
storage-01:
container_name: storage-01
<<: *shared-config
volumes:
- ./files/storage-01:/files
ports:
- "5555:5555"
storage-02:
container_name: storage-02
<<: *shared-config
volumes:
- ./files/storage-02:/files
ports:
- "5556:5555"
storage-03:
container_name: storage-03
<<: *shared-config
volumes:
- ./files/storage-03:/files
ports:
- "5557:5555"
storage-04:
container_name: storage-04
<<: *shared-config
volumes:
- ./files/storage-04:/files
ports:
- "5558:5555"
storage-05:
container_name: storage-05
<<: *shared-config
volumes:
- ./files/storage-05:/files
ports:
- "5559:5555"
storage-06:
container_name: storage-06
<<: *shared-config
volumes:
- ./files/storage-06:/files
ports:
- "5560:5555"