feat(docker): set hysteria container name to project name

Update docker-compose.yml to use "${COMPOSE_PROJECT_NAME}" for the hysteria service container name, making it dynamic based on the project folder name for easier identification and to avoid naming conflicts in multi-project Docker deployments.
This commit is contained in:
Olia Lisa 2025-11-26 09:52:18 +08:00
parent f6d6ae5b27
commit b5f20b9aac

View File

@ -1,7 +1,7 @@
services: services:
hysteria: hysteria:
image: tobyxdd/hysteria:latest image: tobyxdd/hysteria:latest
container_name: hysteria container_name: "${COMPOSE_PROJECT_NAME}" # 容器名为文件夹名称
restart: always restart: always
network_mode: "host" network_mode: "host"
volumes: volumes: