This commit is contained in:
Kris Lamoureux 2023-12-08 04:23:22 -05:00
parent 40083892ff
commit 15706201e9

View File

@ -5,14 +5,12 @@ volumes:
networks: networks:
traefik: traefik:
driver: "overlay"
name: traefik name: traefik
services: services:
traefik: traefik:
image: "${IMAGE:-traefik}:${VERSION:-latest}" image: "${IMAGE:-traefik}:${VERSION:-latest}"
command: command:
- --accesslog=true
- --providers.docker=true - --providers.docker=true
- --providers.docker.swarmMode=true - --providers.docker.swarmMode=true
- --providers.docker.exposedbydefault=${EXPOSED_BY_DEFAULT:-false} - --providers.docker.exposedbydefault=${EXPOSED_BY_DEFAULT:-false}
@ -43,5 +41,7 @@ services:
- "traefik.http.routers.${ROUTER:-traefik}.entrypoints=${ENTRYPOINT:-websecure}" - "traefik.http.routers.${ROUTER:-traefik}.entrypoints=${ENTRYPOINT:-websecure}"
- "traefik.http.routers.${ROUTER:-traefik}.tls=${ENABLE_TLS:-true}" - "traefik.http.routers.${ROUTER:-traefik}.tls=${ENABLE_TLS:-true}"
- "traefik.http.services.${SERVICE:-traefik}.loadbalancer.server.port=80" - "traefik.http.services.${SERVICE:-traefik}.loadbalancer.server.port=80"
- "traefik.http.middlewares.internalonly.ipwhitelist.sourcerange=127.0.0.1/32"
- "traefik.http.routers.${ROUTER:-traefik}.middlewares=internalonly"
- "traefik.docker.network=${NETWORK:-traefik}" - "traefik.docker.network=${NETWORK:-traefik}"
- "traefik.enable=${ENABLE:-true}" - "traefik.enable=${ENABLE:-true}"