Files
HomeServerServices/xray/docker-compose.yml
2026-10-28 18:36:47 +04:00

28 lines
777 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
xray:
image: ghcr.io/xtls/xray-core:latest
container_name: xray
restart: always
ports:
# Порт должен совпадать с XRAY_PORT в config/config.json (генерируется setup.sh)
- "${XRAY_PORT:?}:${XRAY_PORT:?}/tcp"
volumes:
# Монтируем каталог целиком, чтобы не использовать конфиги по умолчанию из образа
- ./config:/usr/local/etc/xray:ro,Z
environment:
- TZ=${TZ:-Europe/Samara}
deploy:
resources:
limits:
cpus: '0.5'
memory: 128M
reservations:
memory: 64M
networks:
- xray_network
networks:
xray_network:
name: xray_network
driver: bridge