traefik + whoami added
This commit is contained in:
24
traefik/compose.yaml
Normal file
24
traefik/compose.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
volumes:
|
||||
acme:
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:3.0
|
||||
container_name: traefik
|
||||
restart: always
|
||||
command: --providers.docker
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./volume.git/traefik.yml:/traefik.yml:ro
|
||||
- ./volume.git/dynamic_config.yml:/dynamic_config.yml:ro
|
||||
- acme:/acme/
|
||||
#- ./volume/usersFile:/usersFile # Basic Auth
|
||||
network_mode: host
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
# Wildcard http -> https redirection for all routers
|
||||
- traefik.http.routers.http-catchall.rule=HostRegexp(`.`)
|
||||
- traefik.http.routers.http-catchall.entrypoints=http
|
||||
- traefik.http.routers.http-catchall.middlewares=redirect-to-https@docker
|
||||
- traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
|
||||
- traefik.http.services.http-catchall.loadbalancer.server.port=80
|
||||
Reference in New Issue
Block a user