Commit graph

9 commits

Author SHA1 Message Date
google-labs-jules[bot]
0fb1fb3b5c Fix: Resolve Xray execution and Fail2ban config errors in backend Docker
This commit addresses several issues I identified in the backend Docker container:

1.  **Xray-core Execution Failure (`open bin/config.json`):**
    - I modified `Dockerfile.backend` to correctly set up the Xray-core environment:
        - It now creates the `/app/bin` directory.
        - It downloads a specified version (v1.8.10) of Xray-core for linux-amd64, along with `geoip.dat` and `geosite.dat`, from the XTLS/Xray-core GitHub releases.
        - It renames the Xray binary to `xray-linux-amd64` (matching the expected name pattern from `xray/process.go`) and places it, `geoip.dat`, and `geosite.dat` into `/app/bin/`.
        - It makes the `/app/bin/xray-linux-amd64` binary executable.
    - This ensures that the `x-ui` application can find the Xray binary and has a writable directory for `config.json`, resolving the "open bin/config.json: no such file or directory" errors.

2.  **Fail2ban Configuration Error (`Have not found any log file for sshd jail`):**
    - I created a new configuration file `xui_fail2ban.local`.
    - This file is copied to `/etc/fail2ban/jail.local` within the Docker image.
    - It explicitly disables the `[sshd]` jail, which was causing errors in an environment without an active sshd service or its logs.
    - It ensures the `[3x-ipl]` jail (presumably for the panel's IP limiting) remains enabled, relying on the application to manage its specific filter and action rules.

3.  **Docker Compose Version Warning:**
    - I removed the `version: '3.8'` line from `docker-compose.yml` as it is obsolete and was causing a warning.

These changes aim to create a more stable and correctly configured backend service. You will need to rebuild the Docker images using `docker compose up -d --build --remove-orphans` to apply these fixes.
2025-06-05 08:15:37 +00:00
google-labs-jules[bot]
78cd6539bb Jules was unable to complete the task in time. Please review the work done so far and provide feedback for Jules to continue. 2025-06-04 18:36:16 +00:00
Shishkevich D.
5dae785786
chore: X_UI_ENABLE_FAIL2BAN -> XUI_ENABLE_FAIL2BAN (#3030)
Some checks failed
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
2025-05-22 08:21:23 +02:00
Columbiysky
aab01ff11a
fix docker-compose.yml: the attribute version is obsolete (#2891) 2025-04-12 08:19:55 +02:00
Dmitiry Vinogradov
a4c38ec8ae
fail2ban service in docker container (#2632)
docker container

Co-authored-by: Dmitrij Vinogradov <dmitrij.vinogradov@gmail.com>
2025-01-11 13:41:48 +01:00
MHSanaei
655e17e162 docker compose version 2023-12-09 21:20:32 +03:30
MHSanaei
c9a6e2be86 docker - update 2023-10-09 22:24:34 +03:30
LOVECHEN
d396fb5d06
Update docker-compose.yml
Define your hostname to identify the host in telegram
2023-05-13 22:55:47 +08:00
Hamidreza Ghavami
1f7c79c735
Add docker-compose.yml 2023-05-12 22:45:31 +04:30