2023-05-12 17:48:16 +00:00
|
|
|
services:
|
2025-11-24 21:05:40 +00:00
|
|
|
3x-ui:
|
2025-06-13 08:25:13 +00:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
container_name: 3xui_app
|
2023-05-12 17:48:16 +00:00
|
|
|
volumes:
|
|
|
|
|
- $PWD/db/:/etc/x-ui/
|
|
|
|
|
- $PWD/cert/:/root/cert/
|
2025-11-24 23:10:02 +00:00
|
|
|
- $PWD/geodata/:/app/bin
|
2023-05-12 17:48:16 +00:00
|
|
|
environment:
|
2025-11-23 14:16:16 +00:00
|
|
|
TZ: "Asia/Tehran"
|
2023-05-12 17:48:16 +00:00
|
|
|
XRAY_VMESS_AEAD_FORCED: "false"
|
2025-05-22 06:21:23 +00:00
|
|
|
XUI_ENABLE_FAIL2BAN: "true"
|
2025-11-24 23:10:02 +00:00
|
|
|
GEODATA_DIR: "/app/bin"
|
2023-05-12 17:48:16 +00:00
|
|
|
tty: true
|
|
|
|
|
network_mode: host
|
2025-11-24 21:05:40 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
depends_on:
|
|
|
|
|
- geodata-cron
|
|
|
|
|
|
|
|
|
|
docker-proxy:
|
|
|
|
|
image: tecnativa/docker-socket-proxy
|
|
|
|
|
container_name: docker_proxy
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
- CONTAINERS=1
|
|
|
|
|
- POST=1
|
|
|
|
|
- ALLOW_RESTARTS=1
|
|
|
|
|
volumes:
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
|
networks:
|
|
|
|
|
- docker-internal
|
|
|
|
|
|
|
|
|
|
geodata-cron:
|
|
|
|
|
build:
|
|
|
|
|
context: docker-cron-runner
|
2025-11-24 23:10:02 +00:00
|
|
|
args:
|
|
|
|
|
XRAY_VERSION: "v25.10.15"
|
|
|
|
|
XRAY_BUILD_DIR: "/app/xray"
|
2025-11-24 21:05:40 +00:00
|
|
|
container_name: geodata_cron
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
depends_on:
|
|
|
|
|
- docker-proxy
|
|
|
|
|
environment:
|
2025-11-24 23:10:02 +00:00
|
|
|
TZ: "UTC"
|
2025-11-24 21:05:40 +00:00
|
|
|
DOCKER_PROXY_URL: "http://docker-proxy:2375"
|
|
|
|
|
TARGET_CONTAINER_NAME: "3xui_app"
|
2025-11-27 11:20:54 +00:00
|
|
|
CRON_SCHEDULE: "0 */6 * * *"
|
2025-11-24 23:10:02 +00:00
|
|
|
SHARED_VOLUME_PATH: "/app/bin"
|
2025-11-24 21:05:40 +00:00
|
|
|
volumes:
|
2025-11-24 23:10:02 +00:00
|
|
|
- $PWD/geodata/:/app/bin/
|
2025-11-24 21:05:40 +00:00
|
|
|
networks:
|
|
|
|
|
- docker-internal
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
docker-internal:
|
|
|
|
|
driver: bridge
|