3x-ui/docker-compose.yml

50 lines
1.3 KiB
YAML
Raw Normal View History

2023-05-12 17:48:16 +00:00
---
2023-12-09 17:50:32 +00:00
version: "3"
2023-05-12 17:48:16 +00:00
services:
3x-ui:
2024-11-06 12:26:02 +00:00
build:
context: .
args:
ANTIZAPRET: "1"
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:
- traefik.enable=true
- traefik.http.routers.3x-ui.rule=Host(`<...>`)
- traefik.http.routers.3x-ui.service=3x-ui
- traefik.http.routers.3x-ui.entrypoints=https
- traefik.http.services.3x-ui.loadbalancer.server.port=<...>
#
- traefik.http.routers.3x-ui-sub.rule=Host(`<...>`)
- 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=<...>
#
- traefik.tcp.routers.vless.rule=HostSNI(`<...>`)
- 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
XUI_SERVER_IP: "" # 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