-
Notifications
You must be signed in to change notification settings - Fork 1
/
traefik.yml
37 lines (37 loc) · 1.03 KB
/
traefik.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
version: '3.7'
services:
reverse-proxy:
image: traefik:v2.10
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--entrypoints.websecure.address=:443"
- "--providers.file.filename=/certs/dynamic_conf.yml"
ports:
- target: 443
published: 443
mode: host
- target: 80
published: 80
mode: host
- target: 8080
published: 81
mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /mnt/docker-volumes/traefik-certs:/certs
restart: unless-stopped
networks:
- traefik-public
renew-certificate:
image: ghcr.io/louisa-uno/renew-traefic-certs:latest
volumes:
- /mnt/docker-volumes/traefik-certs:/certs
restart: unless-stopped
networks:
traefik-public:
external: true