services:
3x-ui:
image: metaligh/3x-ui:latest
container_name: 3x-ui
hostname: 3xui.198388.xyz
volumes:
- $PWD/db/:/etc/x-ui/
- /etc/letsencrypt/:/etc/letsencrypt/:rw
environment:
XRAY_VMESS_AEAD_FORCED: "false"
tty: true
network_mode: host
restart: unless-stopped
version: "3"
services:
3x-ui:
image: ghcr.io/mhsanaei/3x-ui:latest
container_name: 3x-ui
hostname: my-3x-ui
volumes:
- ./db/:/etc/x-ui/
- ./cert/:/root/cert/ #默认路径在/opt/1panel/docker/compose/下面
environment:
XRAY_VMESS_AEAD_FORCED: "false"
tty: true
network_mode: host
restart: unless-stopped