2023-05-12 17:48:16 +00:00
|
|
|
---
|
|
|
|
services:
|
2024-11-18 10:39:36 +00:00
|
|
|
ui:
|
2024-11-06 12:26:02 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
2024-11-18 10:39:36 +00:00
|
|
|
ANTIZAPRET: "${BUILD_WITH_ANTIZAPRET:-0}"
|
2024-11-18 08:54:44 +00:00
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: 512M
|
|
|
|
reservations:
|
|
|
|
memory: 256M
|
2023-05-12 17:48:16 +00:00
|
|
|
container_name: 3x-ui
|
2024-11-06 12:26:02 +00:00
|
|
|
hostname: 3x-ui
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
labels:
|
2024-11-18 10:39:36 +00:00
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.3x-ui.rule=Host(`${XUI_PANEL_DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.3x-ui.service=3x-ui"
|
|
|
|
- "traefik.http.routers.3x-ui.entrypoints=https"
|
|
|
|
- "traefik.http.services.3x-ui.loadbalancer.server.port=2053"
|
2024-11-06 12:26:02 +00:00
|
|
|
#
|
2024-11-18 10:39:36 +00:00
|
|
|
- "traefik.http.routers.3x-ui-sub.rule=Host(`${XUI_SUB_DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.3x-ui-sub.service=3x-ui-sub"
|
|
|
|
- "traefik.http.routers.3x-ui-sub.entrypoints=https"
|
|
|
|
- "traefik.http.services.3x-ui-sub.loadbalancer.server.port=2096"
|
2024-11-06 12:26:02 +00:00
|
|
|
#
|
2024-11-18 10:39:36 +00:00
|
|
|
- "traefik.tcp.routers.vless.rule=HostSNI(`${XUI_VLESS_SNI}`)"
|
|
|
|
- "traefik.tcp.routers.vless.tls.passthrough=true"
|
|
|
|
- "traefik.tcp.routers.vless.service=3x-ui-inbound-443"
|
|
|
|
- "traefik.tcp.services.3x-ui-inbound-443.loadbalancer.server.port=443"
|
2023-05-12 17:48:16 +00:00
|
|
|
volumes:
|
2024-12-06 20:27:12 +00:00
|
|
|
- ./db/:/etc/x-ui/
|
2024-12-08 15:05:37 +00:00
|
|
|
- ./db/fail2ban.sqlite3:/var/lib/fail2ban/fail2ban.sqlite3
|
2024-12-06 20:27:12 +00:00
|
|
|
- ./cert/:/root/cert/
|
2024-12-08 15:05:37 +00:00
|
|
|
- ./logs/xray-access.log:/app/access.log
|
|
|
|
- ./logs/xray-error.log:/app/error.log
|
|
|
|
- ./logs/3xipl.log:/var/log/3xipl.log
|
|
|
|
- ./logs/3xipl-ap.log:/var/log/3xipl-ap.log
|
|
|
|
- ./logs/3xipl-banned.log:/var/log/3xipl-banned.log
|
|
|
|
- ./logs/fail2ban.log:/var/log/fail2ban.log
|
2024-12-06 20:27:12 +00:00
|
|
|
- ./announce.txt:/etc/x-ui/announce.txt
|
2023-05-12 17:48:16 +00:00
|
|
|
environment:
|
2024-11-06 12:26:02 +00:00
|
|
|
PUID: 1000
|
|
|
|
PGID: 1000
|
2023-05-12 17:48:16 +00:00
|
|
|
XRAY_VMESS_AEAD_FORCED: "false"
|
2024-11-06 12:26:02 +00:00
|
|
|
TZ: Europe/Moscow
|
2024-11-18 10:39:36 +00:00
|
|
|
XUI_SERVER_IP: "${XUI_SERVER_IP}"
|
2024-12-06 20:27:12 +00:00
|
|
|
XUI_SUB_PROFILE_TITLE: "${XUI_SUB_PROFILE_TITLE:-}"
|
|
|
|
XUI_SUB_SUPPORT_URL: "${XUI_SUB_SUPPORT_URL:-}"
|
|
|
|
XUI_SUB_PROFILE_WEB_PAGE_URL: "${XUI_SUB_PROFILE_WEB_PAGE_URL:-}"
|
2023-05-12 17:48:16 +00:00
|
|
|
tty: true
|
|
|
|
restart: unless-stopped
|
2024-11-06 12:26:02 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|