docker-compose.yml 340 B

1234567891011121314
  1. services:
  2. 3x-ui:
  3. image: ghcr.io/mhsanaei/3x-ui:latest
  4. container_name: 3x-ui
  5. hostname: yourhostname
  6. volumes:
  7. - $PWD/db/:/etc/x-ui/
  8. - $PWD/cert/:/root/cert/
  9. environment:
  10. XRAY_VMESS_AEAD_FORCED: "false"
  11. X_UI_ENABLE_FAIL2BAN: "true"
  12. tty: true
  13. network_mode: host
  14. restart: unless-stopped