-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.prod.yml
38 lines (36 loc) · 1.01 KB
/
compose.prod.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
version: "3.8"
networks:
proxy:
external: true
services:
server:
image: ${IMAGE:-ghcr.io/european-xfel/zulip-write-only-proxy}:${TAG:?error}
volumes:
- ./config:/app/config
env_file:
- .env
environment:
- ZWOP_PROXY_ROOT=/zwop
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.middlewares.zwop.stripprefix.forceSlash=false"
- "traefik.http.middlewares.zwop.stripprefix.prefixes=/zwop"
- "traefik.http.routers.zwop.middlewares=zwop"
- "traefik.http.routers.zwop.rule=Host(`exfldadev01.desy.de`) && PathPrefix(`/zwop{slash:(/|$)}`)"
- "traefik.http.services.zwop.loadbalancer.server.port=8000"
command: ["poe", "prod"]
deploy:
update_config:
parallelism: 1
delay: 10s
failure_action: rollback
order: start-first
monitor: 10s
max_failure_ratio: 0
restart_policy:
condition: any
delay: 5s
window: 120s