-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-stack.yml
53 lines (50 loc) · 1.51 KB
/
docker-stack.yml
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
version: "3.5"
services:
web:
image: styliteag/nginx-docker-swarm:latest
#entrypoint: ["/bin/sh", "-c", "echo START ; sleep 2073600"] # Enable if you yoe want to debug Start Problems
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
environment:
- UPSTREAM=tasks.collabora
- UPSTREAM_PORT=9980 # DEFAULT
networks:
- traefik_public
- default
depends_on:
- collabora
# This is for docker-compose
labels:
- traefik.enable=true
- traefik.port=80
- traefik.frontend.rule=Host:collabora.your.domain
- traefik.protocol=http
deploy:
replicas: 1
# This is for docker stack
labels:
- traefik.enable=true
- traefik.port=80
- traefik.frontend.rule=Host:collabora.your.domain
- traefik.protocol=http
- traefik.frontend.passHostHeader=true
- traefik.backend.loadbalancer.stickiness=true
collabora:
image: styliteag/collabora-code:latest
#image: collabora/code
env_file: ./collabora.env
cap_add:
- MKNOD
deploy:
replicas: 2
#mode: global
endpoint_mode: dnsrr # or vip
# But "tasks.<servicname>" always resolves to multiple A records
# vip resolves <servicenam> to a single record (The stack loadbalancer)
# dnsrr resolves <servicename> to multiple Records
update_config:
parallelism: 1
delay: 120s
networks:
traefik_public:
external: true