traefik/docker-compose.yml

24 lines
678 B
YAML
Raw Normal View History

2023-10-07 21:50:16 +00:00
version: '3.7'
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
- "${VOLUME:-traefik}:/etc/traefik"