Traefik container has... command: ## General Settings ## - --api.insecure=true - --api.dashboard=true - --api.debug=true
## Log Settings ## - --log.level=DEBUG # <== Setting the level of the logs from traefik ## Provider Settings ## - --providers.docker=true - --providers.docker.exposedbydefault=false - --providers.file.filename=/dynamic.yaml ## Entrypoints Settings ## - --entrypoints.http.address=:80 - --entrypoints.https.address=:443 ## Certificate Settings ## - --certificatesresolvers.mytlschallenge.acme.tlschallenge=true - --certificatesresolvers.mytlschallenge.acme.email=contact@luke-else.co.uk - --certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json
volumes: - ./letsencrypt:/letsencrypt - /var/run/docker.sock:/var/run/docker.sock - ./dynamic.yaml:/dynamic.yaml labels: ## Exposing API Dashboard Service ## - "traefik.enable=true" - "traefik.http.routers.api.rule=Host(monitor.example.com)" - "traefik.http.routers.api.service=api@internal"
monitor.example.com
Each child container has
labels: ## Expose ... Through Trefik ## - "traefik.enable=true" # <== Enable traefik to proxy this container - "traefik.http.routers.containername.rule=Host(example.com)" - "traefik.http.routers.containername.entrypoints=http" - "traefik.http.routers.containername.middlewares=redirect@file"
example.com
- "traefik.http.routers.containername-secured.rule=Host(`example.com`)" - "traefik.http.routers.containername-secured.entrypoints=https" - "traefik.http.routers.containername-secured.tls.certresolver=mytlschallenge"
All relevant containers now depend on Trafik as a container
They also are all on their own separate network... unless they require to share
Containers unable to see Traefik, depends-on can be removed as script now spins containers in the correct order.
88b4133cf7
Removed Dependencies
Merged with commit c83cf90b79 Merge Request TraefikIntegration #5
c83cf90b79
Complete! :)
No dependencies set.
The note is not visible to the blocked user.
Traefik container has...
command:
## General Settings ##
- --api.insecure=true
- --api.dashboard=true
- --api.debug=true
volumes:
- ./letsencrypt:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock
- ./dynamic.yaml:/dynamic.yaml
labels:
## Exposing API Dashboard Service ##
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(
monitor.example.com)"- "traefik.http.routers.api.service=api@internal"
Each child container has
labels:
## Expose ... Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.routers.containername.rule=Host(
example.com)"- "traefik.http.routers.containername.entrypoints=http"
- "traefik.http.routers.containername.middlewares=redirect@file"
All relevant containers now depend on Trafik as a container
They also are all on their own separate network... unless they require to share
Containers unable to see Traefik, depends-on can be removed as script now spins containers in the correct order.
88b4133cf7Removed Dependencies
Merged with commit
c83cf90b79Merge Request TraefikIntegration #5
Complete! :)