3x-ui/docker-compose.yml

22 lines
517 B
YAML
Raw Normal View History

2026-01-06 00:51:41 +00:00
services:
3xui:
build:
context: .
dockerfile: ./Dockerfile
container_name: 3xui_app
# hostname: yourhostname <- optional
2026-01-13 09:03:08 +00:00
# ports:
# - "2053:2053" # Web UI
# - "2096:2096" # Subscriptions
# - "443:443" # Example - Inbound internal
2026-01-06 00:51:41 +00:00
volumes:
- $PWD/db/:/etc/x-ui/
- $PWD/cert/:/root/cert/
environment:
XRAY_VMESS_AEAD_FORCED: "false"
XUI_ENABLE_FAIL2BAN: "true"
tty: true
network_mode: host
2026-01-13 09:03:08 +00:00
restart: unless-stopped