3x-ui/docker-compose.yml

48 lines
1.4 KiB
YAML
Raw Normal View History

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:
- $PWD/db/:/etc/x-ui/
- $PWD/cert/:/root/cert/
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}"
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