Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39a19ebcce | ||
|
|
8e284c15b0 |
No files matched your search
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Bryan Joshua Pedini
|
||||
Copyright (c) 2023 Bryan Joshua Pedini
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
# Base App Deployment
|
||||
This is the base on which (almost) every deployment is sort-of-based on.
|
||||
# Node-Red Deployment
|
||||
+6
-8
@@ -1,20 +1,16 @@
|
||||
---
|
||||
services:
|
||||
app:
|
||||
nodered:
|
||||
image: nodered/node-red:${NODERED_VERSION}
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
### Section Træfik
|
||||
- traefik.enable=${TRAEFIK_ENABLED}
|
||||
- traefik.docker.network=${TRAEFIK_NETWORK}
|
||||
## HTTP
|
||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http
|
||||
# redirect to HTTPS only
|
||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_HTTP_MIDDLEWARES}
|
||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.rule=${TRAEFIK_MATCHRULE}
|
||||
## HTTPS
|
||||
# HTTPS
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
|
||||
# configure the exposed service
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_HTTPS_MIDDLEWARES}
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_MIDDLEWARES}
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=${TRAEFIK_MATCHRULE}
|
||||
# enable TLS and its certificate provider
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=${TRAEFIK_TLSENABLED}
|
||||
@@ -29,6 +25,8 @@ services:
|
||||
- diun.exclude_tags=${DIUN_EXCLUDE}
|
||||
networks:
|
||||
- traefik
|
||||
volumes:
|
||||
- ${NODERED_DATA}:/data
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
|
||||
+9
-6
@@ -1,14 +1,13 @@
|
||||
# Træfik
|
||||
TRAEFIK_ENABLED=true
|
||||
TRAEFIK_NETWORK=traefik
|
||||
TRAEFIK_ROUTER=app_example_com
|
||||
TRAEFIK_SERVICE=app_example_com
|
||||
TRAEFIK_SERVICE_PORT=80
|
||||
TRAEFIK_MATCHRULE=Host(`app.example.com`)
|
||||
TRAEFIK_ROUTER=nodered_example_com
|
||||
TRAEFIK_SERVICE=nodered_example_com
|
||||
TRAEFIK_SERVICE_PORT=1880
|
||||
TRAEFIK_MATCHRULE=Host(`nodered.example.com`)
|
||||
TRAEFIK_TLSENABLED=true
|
||||
TRAEFIK_CERTRESOLVER=letsencrypt
|
||||
TRAEFIK_HTTP_MIDDLEWARES=http-to-https
|
||||
TRAEFIK_HTTPS_MIDDLEWARES=hsts
|
||||
TRAEFIK_MIDDLEWARES=hsts
|
||||
|
||||
# Diun
|
||||
DIUN_ENABLE=true
|
||||
@@ -16,3 +15,7 @@ DIUN_WATCHREPO=true
|
||||
DIUN_SORTALGO=semver
|
||||
DIUN_INCLUDE=
|
||||
DIUN_EXCLUDE=
|
||||
|
||||
# Node-red
|
||||
NODERED_VERSION=3.0.2-18-minimal
|
||||
NODERED_DATA=./data/nodered
|
||||
Reference in new issue
Block a user