app-store/apps/nodered/docker-compose.yml

39 lines
1.6 KiB
YAML
Raw Normal View History

2022-07-28 17:46:12 +00:00
version: "3.7"
services:
nodered:
container_name: nodered
image: nodered/node-red:4.0.0
2022-07-28 17:46:12 +00:00
restart: unless-stopped
ports:
- ${APP_PORT}:1880
volumes:
- ${APP_DATA_DIR}/data:/data
networks:
2022-11-11 19:33:58 +00:00
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.nodered-web-redirect.redirectscheme.scheme: https
traefik.http.services.nodered.loadbalancer.server.port: 1880
# Web
traefik.http.routers.nodered-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.nodered-insecure.entrypoints: web
traefik.http.routers.nodered-insecure.service: nodered
traefik.http.routers.nodered-insecure.middlewares: nodered-web-redirect
# Websecure
2022-11-11 19:33:58 +00:00
traefik.http.routers.nodered.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.nodered.entrypoints: websecure
traefik.http.routers.nodered.service: nodered
traefik.http.routers.nodered.tls.certresolver: myresolver
# Local domain
traefik.http.routers.nodered-local-insecure.rule: Host(`nodered.${LOCAL_DOMAIN}`)
traefik.http.routers.nodered-local-insecure.entrypoints: web
traefik.http.routers.nodered-local-insecure.service: nodered
traefik.http.routers.nodered-local-insecure.middlewares: nodered-web-redirect
# Local domain secure
traefik.http.routers.nodered-local.rule: Host(`nodered.${LOCAL_DOMAIN}`)
traefik.http.routers.nodered-local.entrypoints: websecure
traefik.http.routers.nodered-local.service: nodered
traefik.http.routers.nodered-local.tls: true