-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathstack.yml
63 lines (60 loc) · 1.83 KB
/
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
54
55
56
57
58
59
60
61
62
63
version: '3.8'
#secrets:
#my_secret:
#file: ./my_secret.txt
#my_other_secret:
#external: true
services:
otrs:
image: juanluisbaptiste/otrs:latest
deploy:
replicas: 1
labels:
- traefik.enable=true
- traefik.http.services.ctecsas_otrs.loadbalancer.server.port=80
- traefik.http.routers.ctecsas_otrs.service=ctecsas_otrs
- traefik.http.routers.ctecsas_otrs.rule=Host(`support.example.org`)
- traefik.http.routers.ctecsas_otrs.entrypoints=https
- traefik.http.routers.ctecsas_otrs.tls.certresolver=le
- traefik.http.services.ctecsas_otrs.loadbalancer.sticky=true
- traefik.http.services.ctecsas_otrs.loadbalancer.sticky.cookie.name=StickyCookie
- traefik.http.services.ctecsas_otrs.loadbalancer.sticky.cookie.secure=true
update_config:
parallelism: 1
delay: 10s
order: start-first
failure_action: rollback
restart_policy:
condition: on-failure
resources:
limits:
#cpus: "1.5"
memory: 2048m
reservations:
#cpus: "1"
memory: 512m
placement:
constraints:
- node.role == worker
volumes:
- ./volumes/config:/opt/otrs/Kernel
- ./volumes/log/TicketCounter.log:/opt/otrs/var/log/TicketCounter.log
- ./volumes/article:/opt/otrs/var/article
- ./volumes/skins:/opt/otrs/var/httpd/htdocs/skins/
- ./backups/ctecsas/otrs:/var/otrs/backups
- '/etc/localtime:/etc/localtime:ro'
env_file:
- .env
networks:
- traefik_proxy
restart: always
# healthcheck:
# test: [CMD, curl, -f, {TRAEFIK_HEALTHCHECK?Healthcheck URL not found}]
# interval: 1m10s
# timeout: 10s
# retries: 3
# start_period: 40s
networks:
traefik_proxy:
external:
name: traefik_proxy