Update docker-compose.yml

This commit is contained in:
konstpic 2026-01-13 12:03:08 +03:00 committed by GitHub
parent 77362c30f1
commit 64573d34d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,10 @@ services:
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
container_name: 3xui_app container_name: 3xui_app
# hostname: yourhostname <- optional # hostname: yourhostname <- optional
# ports:
# - "2053:2053" # Web UI
# - "2096:2096" # Subscriptions
# - "443:443" # Example - Inbound internal
volumes: volumes:
- $PWD/db/:/etc/x-ui/ - $PWD/db/:/etc/x-ui/
- $PWD/cert/:/root/cert/ - $PWD/cert/:/root/cert/
@ -13,4 +17,5 @@ services:
XUI_ENABLE_FAIL2BAN: "true" XUI_ENABLE_FAIL2BAN: "true"
tty: true tty: true
network_mode: host network_mode: host
restart: unless-stopped restart: unless-stopped