动态容器名称

This commit is contained in:
Olia Lisa 2025-11-26 09:47:16 +08:00
parent 70f71d4b5e
commit f1078a2ecd

View File

@ -2,7 +2,7 @@ services:
xray: xray:
image: teddysun/xray:latest image: teddysun/xray:latest
restart: always restart: always
container_name: xray_reality container_name: "${COMPOSE_PROJECT_NAME}" # 容器名为文件夹名称
network_mode: "host" network_mode: "host"
volumes: volumes:
- "./conf:/etc/xray" - "./conf:/etc/xray"