Refactor Docker setup to unify CLI and HTTP API under a single image. Update entrypoint to use a script for dynamic behavior based on arguments. Revise documentation to clarify usage and service distinctions.
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
# HTTP API: список tg:// в файле, периодическая проверка, JSON по GET.
|
||||
# HTTP API: тот же образ, что и CLI — без command запускается mtproxy_checkerd (см. docker-entrypoint.sh).
|
||||
# Запуск: 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:
|
||||
|
||||
Reference in New Issue
Block a user