mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-15 02:36:38 +00:00
Update traefik labels on Huggin for v2
* Updated huginn * Update duplicati
This commit is contained in:
@@ -68,13 +68,22 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
labels:
|
labels:
|
||||||
|
# traefik common
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
|
- traefik.docker.network=traefik_public
|
||||||
|
|
||||||
|
# traefikv1
|
||||||
- traefik.frontend.rule=Host:duplicati.example.com
|
- traefik.frontend.rule=Host:duplicati.example.com
|
||||||
- traefik.port=8200
|
- traefik.port=8200
|
||||||
- traefik.frontend.auth.forward.address=http://traefik-forward-auth:4181
|
- traefik.frontend.auth.forward.address=http://traefik-forward-auth:4181
|
||||||
- traefik.frontend.auth.forward.authResponseHeaders=X-Forwarded-User
|
- traefik.frontend.auth.forward.authResponseHeaders=X-Forwarded-User
|
||||||
- traefik.frontend.auth.forward.trustForwardHeader=true
|
- traefik.frontend.auth.forward.trustForwardHeader=true
|
||||||
- traefik.docker.network=traefik_public
|
|
||||||
|
# traefikv2
|
||||||
|
- "traefik.http.routers.duplicati.rule=Host(`duplicati.example.com`)"
|
||||||
|
- "traefik.http.routers.duplicati.entrypoints=https"
|
||||||
|
- "traefik.http.services.duplicati.loadbalancer.server.port=8200"
|
||||||
|
- "traefik.http.routers.duplicati.middlewares=forward-auth"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/data/config/duplicati:/config
|
- /var/data/config/duplicati:/config
|
||||||
- /var/data:/source
|
- /var/data:/source
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ cat config/opendkim/keys/huginn.example.com/mail.txt
|
|||||||
|
|
||||||
### Prepare environment
|
### Prepare environment
|
||||||
|
|
||||||
Create /var/data/huginn/huginn.env, and populate with the following variables. Set the "INVITATION_CODE" variable if you want to require users to enter a code to sign up (protects the UI from abuse) (The full list of Huginn environment variables is available [here](https://github.com/huginn/huginn/blob/master/.env.example))
|
Create /var/data/config/huginn/huginn.env, and populate with the following variables. Set the "INVITATION_CODE" variable if you want to require users to enter a code to sign up (protects the UI from abuse) (The full list of Huginn environment variables is available [here](https://github.com/huginn/huginn/blob/master/.env.example))
|
||||||
|
|
||||||
```
|
```
|
||||||
# For huginn/huginn - essential
|
# For huginn/huginn - essential
|
||||||
@@ -79,12 +79,21 @@ services:
|
|||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
- traefik
|
- traefik_public
|
||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
- traefik.frontend.rule=Host:huginn.funkypenguin.co.nz
|
# traefik common
|
||||||
- traefik.docker.network=traefik
|
- traefik.enable=true
|
||||||
- traefik.port=3000
|
- traefik.docker.network=traefik_public
|
||||||
|
|
||||||
|
# traefikv1
|
||||||
|
- traefik.frontend.rule=Host:huginn.example.com
|
||||||
|
- traefik.port=3000
|
||||||
|
|
||||||
|
# traefikv2
|
||||||
|
- "traefik.http.routers.huginn.rule=Host(`huginn.example.com`)"
|
||||||
|
- "traefik.http.routers.huginn.entrypoints=https"
|
||||||
|
- "traefik.http.services.huginn.loadbalancer.server.port=3000"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
env_file: /var/data/config/huginn/huginn.env
|
env_file: /var/data/config/huginn/huginn.env
|
||||||
@@ -115,7 +124,7 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik_public:
|
||||||
external: true
|
external: true
|
||||||
internal:
|
internal:
|
||||||
driver: overlay
|
driver: overlay
|
||||||
|
|||||||
Reference in New Issue
Block a user