Enhance Dockerfile to build and include a new HTTP API service (mtproxy_checkerd) alongside the existing CLI tool (mtproxy_checker). Update README and documentation to reflect the new service and its usage, including environment variables and Docker run instructions.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# HTTP API: список tg:// в файле, периодическая проверка, JSON по GET.
|
||||
# Запуск: docker compose -f docker-compose.api.yaml up --build
|
||||
services:
|
||||
mtproxy-checkerd:
|
||||
build: .
|
||||
image: mtproxy_checker:local
|
||||
entrypoint: ["/usr/local/bin/mtproxy_checkerd"]
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- ./proxies.txt:/data/proxies.txt:ro
|
||||
environment:
|
||||
MTPROXY_LIST_FILE: /data/proxies.txt
|
||||
MTPROXY_CHECK_INTERVAL: 5m
|
||||
MTPROXY_HTTP_ADDR: ":8080"
|
||||
MTPROXY_CHECK_TIMEOUT: 15s
|
||||
MTPROXY_DC_ID: "2"
|
||||
# Опционально: только перечисленные IP/CIDR (иначе не задавайте переменную)
|
||||
# MTPROXY_ALLOWED_IPS: "172.17.0.0/16,127.0.0.1"
|
||||
Reference in New Issue
Block a user