This commit is contained in:
Hossein 2025-11-30 18:36:07 +03:30
parent 41fe8c2f3d
commit a0b0762693

View File

@ -10,7 +10,9 @@ services:
volumes:
# Your JSON config with "listen": "0.0.0.0" on the inbound
- ./xray-config.json:/etc/xray/config.json:ro
command: ["xray", "-config=/etc/xray/config.json"]
# ENTRYPOINT of image is already "xray"
# So this becomes: xray run -c /etc/xray/config.json
command: ["run", "-c", "/etc/xray/config.json"]
ports:
- "10808:10808" # optional: expose to host for debugging
restart: unless-stopped