-
Notifications
You must be signed in to change notification settings - Fork 9
/
.swarm.yml
32 lines (30 loc) · 1.08 KB
/
.swarm.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
version: '3.7'
services:
redirect:
image: schmunk42/nginx-redirect:0.6.0
environment:
SERVER_REDIRECT: github.com
SERVER_REDIRECT_PATH: /grachevko/docker-hosts-updater
SERVER_REDIRECT_SCHEME: https
networks:
- traefik
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
order: start-first
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`dhu.grachevko.ru`)"
- "traefik.http.routers.whoami.entrypoints=websecure"
- "traefik.http.routers.whoami.tls=true"
- "traefik.http.routers.whoami.tls.certresolver=leresolver"
- "traefik.http.services.whoami-service.loadbalancer.server.port=80"
- "traefik.http.services.whoami-service.loadbalancer.server.scheme=http"
networks:
traefik:
external: true
name: traefik