Compare commits

..

3 Commits

Author SHA1 Message Date
kris e97db75e2e Restore local entrypoint in 'web' compose 2023-10-29 22:14:30 -04:00
kris cb67016830 Add 'web' compose for HTTP-only version 2023-10-25 00:10:09 -04:00
kris 398eb48d31 Update label syntax and add ROUTER variable 2023-10-20 02:04:41 -04:00
2 changed files with 42 additions and 6 deletions
+36
View File
@@ -0,0 +1,36 @@
version: '3.8'
volumes:
traefik:
networks:
traefik:
name: traefik
services:
traefik:
image: "${IMAGE:-traefik}:${VERSION:-latest}"
container_name: "${NAME:-traefik}"
command:
- --providers.docker=true
- --providers.docker.exposedbydefault=${EXPOSED_BY_DEFAULT:-false}
- --api.dashboard=${DASHBOARD:-true}
- --api.debug=${DEBUG:-false}
- --log.level=${LOG_LEVEL:-ERROR}
- --entrypoints.web.address=:80
- --entrypoints.local.address=:8443
ports:
- "${WEB_PORT:-127.0.0.1:80:80}"
- "${LOCAL_PORT:-127.0.0.1:8443:8443}"
labels:
- "traefik.http.routers.${ROUTER:-traefik}.rule=Host(`${DOMAIN:-traefik.local.krislamo.org}`)"
- "traefik.http.routers.${ROUTER:-traefik}.service=api@internal"
- "traefik.http.routers.${ROUTER:-traefik}.entrypoints=${ENTRYPOINT:-local}"
- "traefik.http.routers.${ROUTER:-traefik}.tls=${ENABLE_TLS:-true}"
- "traefik.docker.network=${NETWORK:-traefik}"
- "traefik.enable=${ENABLE:-false}"
networks:
- traefik
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "traefik:/etc/traefik"
+6 -6
View File
@@ -28,12 +28,12 @@ services:
- "${WEBSECURE_PORT:-0.0.0.0:443:443}" - "${WEBSECURE_PORT:-0.0.0.0:443:443}"
- "${LOCAL_PORT:-127.0.0.1:8443:8443}" - "${LOCAL_PORT:-127.0.0.1:8443:8443}"
labels: labels:
traefik.http.routers.traefik.rule: Host(`${DOMAIN:-traefik.local.krislamo.org}`) - "traefik.http.routers.${ROUTER:-traefik}.rule=Host(`${DOMAIN:-traefik.local.krislamo.org}`)"
traefik.http.routers.traefik.service: api@internal - "traefik.http.routers.${ROUTER:-traefik}.service=api@internal"
traefik.http.routers.traefik.entrypoints: ${ENTRYPOINT:-local} - "traefik.http.routers.${ROUTER:-traefik}.entrypoints=${ENTRYPOINT:-local}"
traefik.http.routers.traefik.tls: true - "traefik.http.routers.${ROUTER:-traefik}.tls=${ENABLE_TLS:-true}"
traefik.docker.network: ${NETWORK:-traefik} - "traefik.docker.network=${NETWORK:-traefik}"
traefik.enable: ${ENABLE:-false} - "traefik.enable=${ENABLE:-false}"
networks: networks:
- traefik - traefik
volumes: volumes: