Update work with env variables

This commit is contained in:
Dmitry Bikulov
2026-08-27 11:19:12 +03:00
parent bfb01eab25
commit 13a4f10a5d
14 changed files with 118 additions and 69 deletions
+25
View File
@@ -0,0 +1,25 @@
services:
3x-ui:
image: ghcr.io/mhsanaei/3x-ui:3.4.2
container_name: 3x-ui
restart: unless-stopped
networks:
- proxy
volumes:
- ./data/3x-ui/db/:/etc/x-ui/
- ./data/3x-ui/cert/:/root/cert/
tty: true
ports:
- 2053:2053
- 41060:41060
labels:
- "traefik.enable=true"
- "traefik.http.services.3x-ui.loadbalancer.server.port=20530"
- "traefik.http.routers.3x-ui.rule=Host(`{3X_UI_HOST}`)"
- "traefik.http.routers.3x-ui.entrypoints=websecure"
- "traefik.http.routers.3x-ui.tls.certresolver=le"
networks:
proxy:
name: proxy
external: true
+3
View File
@@ -0,0 +1,3 @@
3X_UI_HOST=
XRAY_VMESS_AEAD_FORCED=false
XUI_ENABLE_FAIL2BAN=true