33 lines
1009 B
YAML
33 lines
1009 B
YAML
|
version: '3.5'
|
||
|
|
||
|
networks:
|
||
|
traefik:
|
||
|
name: traefik
|
||
|
|
||
|
services:
|
||
|
traefik:
|
||
|
image: traefik:${TRAEFIK_VERSION:-latest}
|
||
|
command:
|
||
|
- --api.dashboard=${TRAEFIK_DASHBOARD:-true}
|
||
|
- --api.debug=${TRAEFIK_DEBUG:-false}
|
||
|
- --providers.docker=true
|
||
|
- --entrypoints.web.address=:80
|
||
|
- --entrypoints.web.http.redirections.entrypoint.to=websecure
|
||
|
- --entrypoints.web.http.redirections.entrypoint.scheme=https
|
||
|
- --entrypoints.web.http.redirections.entrypoint.permanent=true
|
||
|
- --entrypoints.websecure.address=:443
|
||
|
- --entrypoints.local.address=:8443
|
||
|
ports:
|
||
|
- 80:80
|
||
|
- 443:443
|
||
|
- "127.0.0.1:8443:8443"
|
||
|
volumes:
|
||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||
|
labels:
|
||
|
traefik.http.routers.api.rule: Host(`${TRAEFIK_DOMAIN:-traefik.local.freeitathens.org}`)
|
||
|
traefik.http.routers.api.entrypoints: local
|
||
|
traefik.http.routers.api.service: api@internal
|
||
|
traefik.http.routers.api.tls: true
|
||
|
networks:
|
||
|
- traefik
|