-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
104 lines (95 loc) · 1.86 KB
/
docker-stack.yml
File metadata and controls
104 lines (95 loc) · 1.86 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
---
version: "3.1"
services:
s3-dmd:
image: vrancurel/zenko-memcached-module
ports:
- "9990"
- "9991"
networks:
- backend
depends_on:
- memcached
environment:
S3DATAPATH: /data
S3METADATAPATH: /metadata
MEMCACHED_HOST: memcached
LISTEN_ADDR: 0.0.0.0
# DEBUG: socket.io*
volumes:
- "s3-data:/data:rw"
- "s3-metadata:/metadata:rw"
command: /usr/bin/supervisord -c /etc/supervisor/supervisord.conf -n -e DEBUG
deploy:
placement:
constraints:
- node.labels.io.zenko.type == storage
memcached:
image: library/memcached
ports:
- "11211:11211"
command: memcached -l 0.0.0.0 -I 10m
networks:
- backend
deploy:
placement:
constraints:
- node.labels.io.zenko.type == storage
s3-front:
image: scality/s3server
ports:
- "8000"
networks:
- backend
- frontend-dmz
environment:
DATA_HOST: s3-dmd
METADATA_HOST: s3-dmd
REDIS_HOST: cache
ENDPOINT: "${ENDPOINT:-zenko}"
secrets:
- s3-credentials
command: npm run start_s3server
depends_on:
- s3-dmd
- 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:
secrets:
s3-credentials:
file: ./secrets.txt