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:
parent
f6d6ae5b27
commit
b5f20b9aac
@ -1,7 +1,7 @@
|
||||
services:
|
||||
hysteria:
|
||||
image: tobyxdd/hysteria:latest
|
||||
container_name: hysteria
|
||||
container_name: "${COMPOSE_PROJECT_NAME}" # 容器名为文件夹名称
|
||||
restart: always
|
||||
network_mode: "host"
|
||||
volumes:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user