Rename internal Docker service/network/volume identifiers to qrforge-*
Cosmetic-only rename, no functional/data-layer change: service names
(php-dynamic-qrcode -> qrforge-app, php-dynamic-qrcode-db -> qrforge-db),
the network (php-dynamic-qrcode-network -> qrforge-network), and the two
named volumes (php_dynamic_qrcode_db_data -> qrforge_db_data,
php_dynamic_qrcode_saved_qrcode_data -> qrforge_qrcode_storage), plus
matching references in nginx.conf's fastcgi_pass and .env.example's
DATABASE_HOST default. Database name itself ('qrcode') intentionally
left unchanged per user request.
Volume rename requires an explicit data migration on already-deployed
hosts (a bare name change would otherwise attach a fresh empty volume) -
handled separately as part of this same deploy, not by this commit.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fo3DiRRpmz2DXjD7Uzhc8u
This commit is contained in:
+11
-11
@@ -1,5 +1,5 @@
|
||||
services:
|
||||
php-dynamic-qrcode:
|
||||
qrforge-app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
@@ -8,7 +8,7 @@ services:
|
||||
TYPE: "${TYPE:-docker}"
|
||||
QRCODE_GENERATOR: "${QRCODE_GENERATOR:-internal-chillerlan.qrcode}"
|
||||
BASE_URL: "${BASE_URL:-http://localhost}"
|
||||
DATABASE_HOST: "php-dynamic-qrcode-db"
|
||||
DATABASE_HOST: "qrforge-db"
|
||||
DATABASE_PORT: "3306"
|
||||
DATABASE_NAME: "${DATABASE_NAME:-qrcode}"
|
||||
DATABASE_USER: "${DATABASE_USER:-qrcode}"
|
||||
@@ -18,18 +18,18 @@ services:
|
||||
ports:
|
||||
- "80:80"
|
||||
depends_on:
|
||||
php-dynamic-qrcode-db:
|
||||
qrforge-db:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- php_dynamic_qrcode_saved_qrcode_data:/var/www/qrcode-storage
|
||||
- qrforge_qrcode_storage:/var/www/qrcode-storage
|
||||
networks:
|
||||
- php-dynamic-qrcode-network
|
||||
- qrforge-network
|
||||
|
||||
php-dynamic-qrcode-db:
|
||||
qrforge-db:
|
||||
image: "mysql:8.0"
|
||||
restart: "unless-stopped"
|
||||
volumes:
|
||||
- php_dynamic_qrcode_db_data:/var/lib/mysql
|
||||
- qrforge_db_data:/var/lib/mysql
|
||||
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD:?zet MYSQL_ROOT_PASSWORD in .env}"
|
||||
@@ -42,12 +42,12 @@ services:
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
networks:
|
||||
- php-dynamic-qrcode-network
|
||||
- qrforge-network
|
||||
|
||||
volumes:
|
||||
php_dynamic_qrcode_db_data:
|
||||
php_dynamic_qrcode_saved_qrcode_data:
|
||||
qrforge_db_data:
|
||||
qrforge_qrcode_storage:
|
||||
|
||||
networks:
|
||||
php-dynamic-qrcode-network:
|
||||
qrforge-network:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user