动态容器名称
This commit is contained in:
+1
-1
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user