Traefik docker-compose Solution #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
88b4133cf7
Removed Dependencies
Merged with commit
c83cf90b79
Merge Request TraefikIntegration #5
Complete! :)