version: "3.9" services: inspircd: container_name: inspircd image: inspircd/inspircd-docker:3.17.0 restart: unless-stopped volumes: - ${APP_DATA_DIR}/data:/inspircd/conf ports: - ${APP_PORT}:6697 networks: - tipi_main_network labels: # Main traefik.enable: true traefik.http.middlewares.inspircd-web-redirect.redirectscheme.scheme: https traefik.http.services.inspircd.loadbalancer.server.port: 6697 # Web traefik.http.routers.inspircd-insecure.rule: Host(`${APP_DOMAIN}`) traefik.http.routers.inspircd-insecure.entrypoints: web traefik.http.routers.inspircd-insecure.service: inspircd traefik.http.routers.inspircd-insecure.middlewares: inspircd-web-redirect # Websecure traefik.http.routers.inspircd.rule: Host(`${APP_DOMAIN}`) traefik.http.routers.inspircd.entrypoints: websecure traefik.http.routers.inspircd.service: inspircd traefik.http.routers.inspircd.tls.certresolver: myresolver # Local domain traefik.http.routers.inspircd-local-insecure.rule: Host(`inspircd.${LOCAL_DOMAIN}`) traefik.http.routers.inspircd-local-insecure.entrypoints: web traefik.http.routers.inspircd-local-insecure.service: inspircd traefik.http.routers.inspircd-local-insecure.middlewares: inspircd-web-redirect # Local domain secure traefik.http.routers.inspircd-local.rule: Host(`inspircd.${LOCAL_DOMAIN}`) traefik.http.routers.inspircd-local.entrypoints: websecure traefik.http.routers.inspircd-local.service: inspircd traefik.http.routers.inspircd-local.tls: true