-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtraefik.stack
46 lines (43 loc) · 1.01 KB
/
traefik.stack
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
version: '3'
services:
traefik:
image: traefik:alpine
command: |-
--entryPoints="Name:http Address::80 Redirect.EntryPoint:https"
--entryPoints="Name:https Address::443 TLS"
--defaultentrypoints="http,https"
--accesslogsfile="/var/log/access.log"
--acme
--acme.acmelogging="true"
--acme.email="[email protected]"
--acme.entrypoint="https"
--acme.httpChallenge.entryPoint="http"
--acme.storage="/acme/acme.json"
--acme.onhostrule="true"
--docker
--docker.swarmmode
--docker.domain="domain.com"
--docker.watch
--web
ports:
- 80:80
- 443:443
- 8080:8080
networks:
- proxy
volumes:
- traefik:/acme/
- traefik:/var/log/access.log
- /var/run/docker.sock:/var/run/docker.sock
deploy:
placement:
constraints:
- node.role == manager
volumes:
traefik:
driver: hetzner:latest
driver_opts:
size: '10'
networks:
proxy:
external: true