services: homarr: container_name: homarr image: ghcr.io/homarr-labs/homarr:v2.1.2 restart: unless-stopped volumes: - ./appdata:/appdata - /var/run/docker.sock:/var/run/docker.sock:ro - ./kubeconfig:/app/config/kubeconfig:ro env_file: .env ports: - 80:7575 - 81:3000 environment: - TZ=${TZ:-Europe/Bratislava} - TURBO_TELEMETRY_DISABLED=1 - KUBECONFIG=/app/config/kubeconfig labels: - "traefik.enable=true" - "traefik.http.services.homarr.loadbalancer.server.port=7575" # Prod Router - "traefik.http.routers.homarr.rule=Host(`homarr.forust.xyz`)" - "traefik.http.routers.homarr.entrypoints=websecure" - "traefik.http.routers.homarr.tls.certresolver=letsencrypt" # Local Router - "traefik.http.routers.homarr-local.rule=Host(`homarr.workstation.internal`)" - "traefik.http.routers.homarr-local.entrypoints=websecure" - "traefik.http.routers.homarr-local.tls=true" # Dev Router - "traefik.http.routers.homarr-dev.rule=Host(`homarr.gigaforust.internal`)" - "traefik.http.routers.homarr-dev.entrypoints=websecure" - "traefik.http.routers.homarr-dev.tls=true" networks: - proxy networks: proxy: external: true