This commit is contained in:
mathieu 2024-05-14 19:12:24 +02:00
parent 73b8f9dd71
commit 6987ece63f
2 changed files with 9 additions and 16 deletions

View File

@ -5,8 +5,6 @@ services:
image: traefik:latest
container_name: "traefik"
restart: always
command:
- "--log.level=DEBUG"
ports:
- "8888:80"
- "8443:443"
@ -19,7 +17,7 @@ services:
# Mapping sur le socket interne de Docker
- '/var/run/docker.sock:/var/run/docker.sock'
# Mapping du fichier de configuration statique
- '/volume1/docker/traefik/conf/traefik.yml:/traefik.yml'
- '/volume1/docker/traefik/conf/traefik.yml:/etc/traefik/traefik.yml'
# Mapping du dossier contenant la configuration dynamique
#- './conf/dyn_traefik/:/dyn_traefik/'
# Mapping du fichier de stockage des certificats

View File

@ -1,23 +1,18 @@
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
scheme: https
permanent: true
# http:
# redirections:
# entryPoint:
# to: websecure
# scheme: https
# permanent: true
websecure:
address: ":443"
http:
routers:
my-router:
rule: "Path(`/foo`)"
service: service-foo
log:
level: DEBUG
api:
insecure: true