-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
129 lines (118 loc) · 2.3 KB
/
docker-stack.yml
File metadata and controls
129 lines (118 loc) · 2.3 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
version: "3.1"
services:
backbeat:
image: vrancurel/backbeat
networks:
- backend
environment:
FOO: bar
command: /usr/bin/supervisord -c /etc/supervisor/supervisord.conf -n
kafka:
image: vrancurel/kafka
ports:
- "2181"
- "9092"
networks:
- backend
environment:
FOO: bar
volumes:
- "backbeat-data:/data:rw"
command: /usr/bin/supervisord -c /etc/supervisor/supervisord.conf -n
deploy:
placement:
constraints:
- node.labels.io.zenko.type == storage
s3-data:
image: vrancurel/s3
ports:
- "9991"
networks:
- backend
environment:
S3DATAPATH: /data
LISTEN_ADDR: 0.0.0.0
volumes:
- "s3-data:/data:rw"
command: npm run start_dataserver
deploy:
placement:
constraints:
- node.labels.io.zenko.type == storage
s3-metadata:
image: vrancurel/s3
ports:
- "9990"
networks:
- backend
environment:
S3METADATAPATH: /metadata
LISTEN_ADDR: 0.0.0.0
volumes:
- 's3-metadata:/metadata:rw'
command: npm run start_mdserver
deploy:
placement:
constraints:
- node.labels.io.zenko.type == storage
s3-front:
image: vrancurel/s3
ports:
- "8000"
networks:
- backend
- frontend-dmz
environment:
DATA_HOST: s3-data
METADATA_HOST: s3-metadata
REDIS_HOST: cache
ENDPOINT: "${ENDPOINT:-zenko}"
secrets:
- s3-credentials
command: npm run start_s3server
depends_on:
- s3-data
- s3-metadata
- cache
deploy:
mode: replicated
update_config:
parallelism: 1
delay: "10s"
monitor: "5s"
cache:
image: redis:alpine
ports:
- "6379"
networks:
- backend
lb:
image: zenko/loadbalancer
ports:
- "80:80"
environment:
LISTEN_PORT: 80
UPSTREAM_SERVER: "s3-front:8000"
networks:
- frontend
- frontend-dmz
depends_on:
- s3-front
deploy:
mode: global
update_config:
parallelism: 1
delay: "10s"
monitor: "5s"
networks:
backend:
frontend:
frontend-dmz:
volumes:
s3-data:
s3-metadata:
backbeat-data:
secrets:
s3-credentials:
file: ./secrets.txt