update core stack

This commit is contained in:
kelinfoxy
2026-03-17 22:16:03 -04:00
parent fd497c9fcd
commit 2756af8570
3 changed files with 65 additions and 27 deletions

View File

@@ -49,7 +49,7 @@ x-dockge:
- ${LOCAL_URL} - ${LOCAL_URL}
x-arcane: x-arcane:
icon: ${ICON_URL} icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/backrest.svg
urls: urls:
- https://${PROXY_URL} - https://${PROXY_URL}
- ${LOCAL_URL} - ${LOCAL_URL}

View File

@@ -1,18 +1,56 @@
# Core Stack Environment Variables # #######################################################
# Templating variables, not used by compose file directly
SERVER_NAME=
SERVER_IP=
SUBDOMAIN=
ICON_URL=https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/traefik.svg
# Include Server Name in Proxy URL? Choose one.
# PROXY_URL=${SERVICE_NAME}.${SERVER_NAME}.${SUBDOMAIN}.duckdns.org
# PROXY_URL=${SERVICE_NAME}.${SUBDOMAIN}.duckdns.org
# #############################################################################
# Compose file variables
TZ=America/New_York TZ=America/New_York
PUID=1000 PUID=1000
PGID=1000 PGID=1000
SERVER_IP=192.168.4.4
SERVER_HOSTNAME=jasper
DOMAIN=kelinreij.duckdns.org
DUCKDNS_SUBDOMAINS=kelinreij LOCAL_URL=http://${SERVER_IP}:${EXTERNAL_PORT}
DUCKDNS_TOKEN=41ef7faa-fc93-41d2-a32f-340fd2b75b2f
DUCKDNS_SUBDOMAINS=
DUCKDNS_TOKEN=
AUTHELIA_JWT_SECRET=
AUTHELIA_SESSION_SECRET=
AUTHELIA_STORAGE_ENCRYPTION_KEY=
AUTHELIA_ADMIN_PASSWORD_HASH=
TRAEFIK_HOST_LABEL=traefik.http.routers.traefik.rule=Host(`traefik.${SUBDOMAIN}.duckdns.org`)
AUTHELIA_HOST_LABEL=traefik.http.routers.authelia.rule=Host(`auth.${SUBDOMAIN}.duckdns.org`)
AUTHELIA_FORWARD_AUTH_LABEL=traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.${SUBDOMAIN}.duckdns.org/
# #############################################################
# Container Labels
# DO NOT enclose label values in single quotes
# If the value needs to include single quotes use backticks instead
# For example HOST_LABEL=traefik.http.routers.${SERVICE_NAME}.rule=Host(`${PROXY_URL}`)
# Notice the use of backticks instead of single quotes around ${PROXY_URL}
TRAEFIK_ENABLE_LABEL=traefik.enable=true
HOST_LABEL=traefik.http.routers.${SERVICE_NAME}.rule=Host(`${PROXY_URL}`)
ICON_LABEL=com.getarcaneapp.arcane.icon=${ICON_URL}
LOADBALANCER_LABEL=traefik.http.services.${SERVICE_NAME}.loadbalancer.server.port=${INTERNAL_PORT}
TRAEFIK_NETWORK_LABEL=traefik.docker.network=traefik-network
ENTRYPOINT_LABEL=traefik.http.routers.${SERVICE_NAME}.entrypoints=websecure
CERT_LABEL=traefik.http.routers.${SERVICE_NAME}.tls.certresolver=letsencrypt
AUTHELIA_LABEL=traefik.http.routers.${SERVICE_NAME}.middlewares=authelia@docker
WATCHTOWER_ENABLE_LABEL=com.centurylinklabs.watchtower.enable=true
PIHOLE_PASSWORD=Tiberi0u$
AUTHELIA_JWT_SECRET=f6e604660a5b0cc9b6e506374c1de1309e7fb7999fae330701b3ffeb8c874a8f7cb55781186e72c81f46edba4fe6874020d5edc00562bfcbf7b555e5a483e025
AUTHELIA_SESSION_SECRET=27a9a3b300b73de99537488c56133ab062b5b7d6474063db18942314a6b0dc045ee0f42b2f8a526afb12e2a1480e1539087b4a5a67334fe825116739adf27c1b
AUTHELIA_STORAGE_ENCRYPTION_KEY=b9a5374a75524340001bb715dc35b666dbf2288ab2cef5181a4d1ec8ec7c4ed16cab1ab9dfd981341d4b55b86b3d4b61be7f568cae896c38c08e02cd758b1cd4
AUTHELIA_ADMIN_PASSWORD_HASH==19=65536,t=3,p=4+A+otnHSpfW0Xr7uXV3XZ9sy7YxaI

View File

@@ -40,10 +40,9 @@ services:
- homelab-network - homelab-network
labels: labels:
- com.getarcaneapp.arcane.icon=https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/traefik.svg - com.getarcaneapp.arcane.icon=https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/traefik.svg
- 'homelab.category=core' # - 'traefik.http.routers.traefik.rule=Host(`traefik.kelinreij.duckdns.org`)'
- 'homelab.description=Reverse proxy and SSL termination' - ${TRAEFIK_HOST_LABEL}
- 'traefik.enable=true' - 'traefik.enable=true'
- 'traefik.http.routers.traefik.rule=Host(`traefik.kelinreij.duckdns.org`)'
- 'traefik.http.routers.traefik.entrypoints=websecure' - 'traefik.http.routers.traefik.entrypoints=websecure'
- 'traefik.http.routers.traefik.tls.certresolver=letsencrypt' - 'traefik.http.routers.traefik.tls.certresolver=letsencrypt'
- 'traefik.http.routers.traefik.middlewares=authelia@docker' - 'traefik.http.routers.traefik.middlewares=authelia@docker'
@@ -66,15 +65,16 @@ services:
- homelab-network - homelab-network
labels: labels:
- com.getarcaneapp.arcane.icon=https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/authelia.svg - com.getarcaneapp.arcane.icon=https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/authelia.svg
- 'homelab.category=core' # - 'traefik.http.routers.authelia.rule=Host(`auth.kelinreij.duckdns.org`)'
- 'homelab.description=Single sign-on authentication' - ${AUTHELIA_HOST_LABEL}
- 'traefik.enable=true' - 'traefik.enable=true'
- 'traefik.http.routers.authelia.rule=Host(`auth.kelinreij.duckdns.org`)'
- 'traefik.http.routers.authelia.entrypoints=websecure' - 'traefik.http.routers.authelia.entrypoints=websecure'
- 'traefik.http.routers.authelia.tls.certresolver=letsencrypt' - 'traefik.http.routers.authelia.tls.certresolver=letsencrypt'
- 'traefik.http.routers.authelia.service=authelia' - 'traefik.http.routers.authelia.service=authelia'
- 'traefik.http.services.authelia.loadbalancer.server.port=9091' - 'traefik.http.services.authelia.loadbalancer.server.port=9091'
- 'traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.kelinreij.duckdns.org/' # - 'traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.kelinreij.duckdns.org/'
- ${AUTHELIA_FORWARD_AUTH_LABEL}
- 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=X-Secret' - 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=X-Secret'
- 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true' - 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true'
@@ -86,15 +86,15 @@ networks:
x-dockge: x-dockge:
urls: urls:
- https://auth.kelinreij.duckdns.org - https://auth.${SUBDOMAIN}.duckdns.org
- http://192.168.4.4:9091 - http://${SERVER_IP}:9091
- https://traefik.kelinreij.duckdns.org - https://traefik.${SUBDOMAIN}.duckdns.org
- http://192.168.4.4:8080 - http://${SERVER_IP}:8080
x-arcane: x-arcane:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/traefik.svg icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/traefik.svg
urls: urls:
- https://auth.kelinreij.duckdns.org - https://auth.${SUBDOMAIN}.duckdns.org
- http://192.168.4.4:9091 - http://${SERVER_IP}:9091
- https://traefik.kelinreij.duckdns.org - https://traefik.${SUBDOMAIN}.duckdns.org
- http://192.168.4.4:8080 - http://${SERVER_IP}:8080