traefik/docker-compose.yml

27 lines
688 B
YAML
Raw Normal View History

2023-10-07 22:03:02 +00:00
version: '3.7'
volumes:
traefik:
networks:
${NETWORK:-traefik}:
name: ${NETWORK:-traefik}
services:
traefik:
image: "${IMAGE:-traefik}:${VERSION:-latest}"
container_name: "${NAME:-traefik}"
ports:
- "${HTTP_PORT:-80:80}"
- "${HTTPS_PORT:-443:443}"
networks:
- traefik
labels:
- "traefik.http.routers.${ROUTER:-traefik}.rule=Host(`${DOMAIN:-traefik.local.krislamo.org}`)"
- "traefik.http.routers.${ROUTER:-traefik}.service=api@internal"
- "traefik.docker.network=${NETWORK:-traefik}"
- "traefik.enable=${ENABLE:-false}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "traefik:/etc/traefik"