diff --git a/traefik/docker-compose/traefik/docker-compose.yaml b/traefik/docker-compose/traefik/docker-compose.yaml index 6b1b7f1..5359ad1 100644 --- a/traefik/docker-compose/traefik/docker-compose.yaml +++ b/traefik/docker-compose/traefik/docker-compose.yaml @@ -4,12 +4,12 @@ services: image: traefik:v3.1 # Enables the web UI and tells Traefik to listen to docker command: - - --api.insecure=true - - --providers.docker +# - --api.insecure=true +# - --providers.docker # - --entryPoints.web.address=:80 # - --entryPoints.websecure.address=:443 - - --accesslog=true - - --log.level=DEBUG +# - --accesslog=true +# - --log.level=DEBUG - --configFile=/traefik/config.yaml ports: # The HTTP port diff --git a/traefik/docker-compose/traefik/services/traefik/config.yaml b/traefik/docker-compose/traefik/services/traefik/config.yaml index 89c4542..ad12496 100644 --- a/traefik/docker-compose/traefik/services/traefik/config.yaml +++ b/traefik/docker-compose/traefik/services/traefik/config.yaml @@ -1,16 +1,31 @@ -## Static configuration -#entryPoints: -# web: -# address: ":80" -# -# websecure: -# address: ":443" +# enable admin gui +api: + insecure: true -#tls: -# stores: -# default: +# enable access logs +acceslog: true +# set log level +log: + level: debug + + +# set default certificate tls: stores: default: +# certificate not set so will be autogenerated defaultCertificate: + +# enable docker compose auto discovery +providers: + docker: { } + + +## Static configuration +entryPoints: + web: + address: ":80" + + websecure: + address: ":443"