From e9bbe446011ba28c0a223698a5240208e5834d97 Mon Sep 17 00:00:00 2001 From: librelad Date: Wed, 19 Aug 2026 05:12:09 +0100 Subject: [PATCH] Rename bookstack_db to bookstack-db for naming consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was the only underscore-separated service name across all 38 apps; every other helper uses a hyphen (nextcloud-db, matrix-postgres, owncloud-mariadb, gitea-cache, mastodon-redis). Beyond consistency this closes a naming collision by construction. Instance slugs are _ and may only contain [a-z0-9_] — the underscore is forced there, because app configs are SOURCED and the uppercased slug becomes part of CFG__* variable names, which a hyphen would make invalid shell identifiers. So a hyphenated helper name is one no slug can ever produce: bookstack_home-db is unreachable, where bookstack_home_db was a name an instance literally called "home_db" could also generate. The four installed Bookstack apps were removed and rebuilt on the new template (no data worth keeping, per the maintainer). All four are back up and serving 200 on the LAN, and their port rows join correctly to the renamed services. Co-Authored-By: Claude Opus 5 --- containers/bookstack/docker-compose.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/containers/bookstack/docker-compose.yml b/containers/bookstack/docker-compose.yml index 8c93f10..7357412 100755 --- a/containers/bookstack/docker-compose.yml +++ b/containers/bookstack/docker-compose.yml @@ -12,7 +12,7 @@ services: - TZ=TIMEZONE_DATA #LIBREPORTAL|TIMEZONE_TAG|TIMEZONE_DATA - APP_URL=APP_URL_DATA #LIBREPORTAL|APP_URL_TAG|APP_URL_DATA - APP_KEY=BOOKSTACK_APP_KEY_1_DATA #LIBREPORTAL|BOOKSTACK_APP_KEY_1_TAG|BOOKSTACK_APP_KEY_1_DATA - - DB_HOST=bookstack_db + - DB_HOST=bookstack-db - DB_PORT=3306 - DB_USERNAME=bookstack - DB_PASSWORD=BOOKSTACK_DB_PASSWORD_1_DATA #LIBREPORTAL|BOOKSTACK_DB_PASSWORD_1_TAG|BOOKSTACK_DB_PASSWORD_1_DATA @@ -26,13 +26,13 @@ services: # GLUETUN_OFF_END restart: unless-stopped depends_on: - - bookstack_db + - bookstack-db healthcheck: disable: HEALTHCHECK_DATA #LIBREPORTAL|HEALTHCHECK_TAG|HEALTHCHECK_DATA labels: libreportal.category: "CATEGORY_DATA" #LIBREPORTAL|CATEGORY_TAG|CATEGORY_DATA libreportal.title: "TITLE_DATA" #LIBREPORTAL|TITLE_TAG|TITLE_DATA - libreportal.backup.db: "mariadb:bookstack_db:db:" + libreportal.backup.db: "mariadb:bookstack-db:db:" libreportal.backup.files: "bookstack:/config:data" traefik.enable: TRAEFIK_ENABLE_DATA #LIBREPORTAL|TRAEFIK_ENABLE_TAG|TRAEFIK_ENABLE_DATA # TRAEFIK_PORT_1_BEGIN @@ -53,9 +53,9 @@ services: # network_mode: "container:gluetun-service" # GLUETUN_ON_END - bookstack_db: #LIBREPORTAL|SERVICE_TAG_2|bookstack_db + bookstack-db: #LIBREPORTAL|SERVICE_TAG_2|bookstack-db image: lscr.io/linuxserver/mariadb - container_name: bookstack_db + container_name: bookstack-db environment: - PUID=1000 - PGID=1000