Add a `#LIBREPORTAL|<APP>_VERSION_TAG|<current-tag>` sentinel to each app's anchor (`<slug>-service`) image line, so a `CFG_<APP>_VERSION` config drives that tag through the existing tagging system — the config becomes the source, the compose tag is derived (like ports/IPs/domains already are). This is the "install/pin a specific version" knob. - Placeholder is the literal current tag (e.g. `31-fpm-alpine`), NOT a `*_DATA` token: an unset var leaves the line untouched (inert comment, keeps the real tag) and never trips the up_app stale-tag scanner. - Only the anchor line is tagged (sidecars mariadb/redis/nginx stay tracked-by-digest, not user-version-picked). ollama correctly targets `ollama/ollama`, not the companion open-webui. - Untagged anchors normalized to `:latest` (semantic no-op) so they're templatable too. The manager (libreportal) is skipped — it updates via its release channel, not a docker tag. 32 apps wired. Verified: CFG_NEXTCLOUD_VERSION=32 → `nextcloud:32` (prefix preserved, idempotent, sidecars untouched); all compose files still valid YAML. Inert until a version config is set, so no behaviour change on existing installs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
40 lines
2.0 KiB
YAML
40 lines
2.0 KiB
YAML
networks:
|
|
DOCKER_NETWORK_DATA: #LIBREPORTAL|DOCKER_NETWORK_TAG|DOCKER_NETWORK_DATA
|
|
external: true
|
|
|
|
services:
|
|
traefik-service: #LIBREPORTAL|SERVICE_TAG_1|traefik-service
|
|
container_name: traefik-service
|
|
image: traefik:latest #LIBREPORTAL|TRAEFIK_VERSION_TAG|latest
|
|
restart: unless-stopped
|
|
hostname: traefik
|
|
ports:
|
|
- "PORTS_DATA_1" #LIBREPORTAL|PORTS_TAG_1|PORTS_DATA_1
|
|
- "PORTS_DATA_2" #LIBREPORTAL|PORTS_TAG_2|PORTS_DATA_2
|
|
- "PORTS_DATA_3" #LIBREPORTAL|PORTS_TAG_3|PORTS_DATA_3
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- SOCKET_DATA #LIBREPORTAL|SOCKET_TAG|SOCKET_DATA
|
|
- "./etc:/etc/traefik"
|
|
- "/etc/crowdsec/traefik_bouncer.key:/etc/traefik/crowdsec_key:ro"
|
|
labels:
|
|
libreportal.category: "CATEGORY_DATA" #LIBREPORTAL|CATEGORY_TAG|CATEGORY_DATA
|
|
libreportal.title: "TITLE_DATA" #LIBREPORTAL|TITLE_TAG|TITLE_DATA
|
|
traefik.enable: TRAEFIK_ENABLE_DATA #LIBREPORTAL|TRAEFIK_ENABLE_TAG|TRAEFIK_ENABLE_DATA
|
|
# TRAEFIK_PORT_1_BEGIN
|
|
traefik.http.routers.traefik-service-dashboard.entrypoints: web,websecure
|
|
traefik.http.routers.traefik-service-dashboard.rule: Host(`DOMAINSUBNAME_DATA_1`) #LIBREPORTAL|DOMAINSUBNAME_TAG_1|DOMAINSUBNAME_DATA_1
|
|
traefik.http.routers.traefik-service-dashboard.service: api@internal
|
|
traefik.http.routers.traefik-service-dashboard.tls: true
|
|
traefik.http.routers.traefik-service-dashboard.tls.certresolver: production
|
|
traefik.http.routers.traefik-service-dashboard.tls.options: modern@file
|
|
traefik.http.routers.traefik-service-dashboard.middlewares: MIDDLEWARE_DATA_1 #LIBREPORTAL|MIDDLEWARE_TAG_1|MIDDLEWARE_DATA_1
|
|
# TRAEFIK_PORT_1_END
|
|
traefik.docker.network: DOCKER_NETWORK_DATA #LIBREPORTAL|DOCKER_NETWORK_TAG|DOCKER_NETWORK_DATA
|
|
healthcheck:
|
|
disable: HEALTHCHECK_DATA #LIBREPORTAL|HEALTHCHECK_TAG|HEALTHCHECK_DATA
|
|
networks:
|
|
DOCKER_NETWORK_DATA: #LIBREPORTAL|DOCKER_NETWORK_TAG|DOCKER_NETWORK_DATA
|
|
ipv4_address: IP_DATA_1 #LIBREPORTAL|IP_TAG_1|IP_DATA_1
|