docker-compose.yml 358 B

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