traefik updates

This commit is contained in:
Iurii Tatishchev 2022-11-07 10:17:21 -08:00
parent 75d1e63a51
commit 33678b8b07
Signed by: CaZzzer
GPG Key ID: 9A156B7DA6398968
3 changed files with 34 additions and 2 deletions

View File

@ -3,9 +3,12 @@ version: "3.9"
networks:
traefik:
volumes:
logs:
services:
traefik:
image: traefik:v2.8
image: traefik:v2.9
container_name: traefik
restart: unless-stopped
ports:
@ -16,5 +19,7 @@ services:
networks:
- traefik
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yml:/etc/traefik/traefik.yml:ro
- logs:/logs
- {{ current_svc_path }}/rules:/rules:ro

View File

@ -0,0 +1,10 @@
http:
routers:
sonarr:
rule: "Host(`sonarr.{{ domain }}`)"
service: sonarr
services:
sonarr:
loadBalancer:
servers:
- url: "http://sonarr.lab.home:8989"

View File

@ -1,7 +1,24 @@
api:
insecure: true
log:
filePath: /logs/traefik.log
level: INFO
accessLog:
filePath: /logs/access.log
bufferingSize: 100
entryPoints:
web:
address: ":80"
forwardedHeaders:
trustedIPs:
- "172.16.0.0/12"
providers:
docker:
exposedByDefault: false
network: traefik_traefik
file:
directory: /rules
watch: true