-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (51 loc) · 2.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (51 loc) · 2.05 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
version: "3"
services:
traefik:
image: traefik:v2.11
ports:
- target: 80
published: 80
mode: host
- target: 8080
published: 8081
mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./dev/traefik.yml:/etc/traefik/traefik.yml
- .:/plugins-local/src/github.com/SIB-rennes/traefik_query_sticky
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik-dashboard.rule=Host(`traefik.127.0.0.1.nip.io`)"
- "traefik.http.routers.traefik-dashboard.entrypoints=web"
- "traefik.http.services.traefik-dashboard.loadbalancer.server.port=8080"
whoami:
image: traefik/whoami
hostname: "whoami-{{.Task.Slot}}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.127.0.0.1.nip.io`)"
- "traefik.http.routers.whoami.entrypoints=web"
- "traefik.http.routers.whoami.middlewares=whoami-plugin"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
- "traefik.http.middlewares.whoami-plugin.plugin.traefik_query_sticky=true"
- "traefik.http.services.whoami.loadbalancer.sticky.cookie.name=traefik_collabora_sticky"
# Plugin config
- "traefik.http.middlewares.whoami-plugin.plugin.traefik_query_sticky.cookieName=traefik_collabora_sticky"
- "traefik.http.middlewares.whoami-plugin.plugin.traefik_query_sticky.queryName=WOPISrc"
- "traefik.http.middlewares.whoami-plugin.plugin.traefik_query_sticky.redisAddr=redis:6379"
- "traefik.http.middlewares.whoami-plugin.plugin.traefik_query_sticky.redisDb=2"
- "traefik.http.middlewares.whoami-plugin.plugin.traefik_query_sticky.redisConnectionTimeout=1"
- "traefik.http.middlewares.whoami-plugin.plugin.traefik_query_sticky.redisTTL=2"
replicas: 3
redis:
image: redis:7.4.2
ports:
- "60379:6379"
networks:
app_network:
driver: overlay
attachable: true