-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yml
48 lines (44 loc) · 1.27 KB
/
test.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
version: '3.7'
x-labels-default: &labels-default
"traefik.enable": "true"
"traefik.port": "80"
# not necessary anymore
# "traefik.docker.network": "web"
"traefik.frontend.rule": "Host:${domain_test:-test.local.de}"
"traefik.backend.loadbalancer.method": "wrr"
"traefik.frontend.headers.SSLRedirect": "true"
"traefik.frontend.headers.STSIncludeSubdomains": "true"
"traefik.frontend.headers.STSPreload": "true"
"traefik.frontend.headers.STSSeconds": "315360000"
"traefik.frontend.headers.forceSTSHeader": "true"
"traefik.frontend.headers.frameDeny": "false"
"traefik.backend.healthcheck.path": "/"
"traefik.backend.healthcheck.port": "80"
"traefik.backend.healthcheck.interval": "10s"
services:
test:
image: nginx:alpine
# command: sleep 3600
networks:
# disable if you wanne use swarm, enable for plain docker
- proxy
# enable if you wanne use swarm, disable for plain docker
# - proxy-swarm
labels:
<< : *labels-default
deploy:
replicas: 2
restart_policy:
condition: on-failure
delay: 30s
max_attempts: 3
window: 120s
labels:
<< : *labels-default
networks:
proxy:
external: true
name: proxy
proxy-swarm:
external: true
name: proxy-swarm