27 lines
656 B
YAML
27 lines
656 B
YAML
services:
|
|
3x-ui:
|
|
image: ghcr.io/mhsanaei/3x-ui:3.4.2
|
|
container_name: 3x-ui
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
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(`${X_UI_HOST}`)"
|
|
- "traefik.http.routers.3x-ui.entrypoints=websecure"
|
|
- "traefik.http.routers.3x-ui.tls.certresolver=le"
|
|
|
|
networks:
|
|
proxy:
|
|
name: proxy
|
|
external: true
|