feat: Introduce bot-descarga service for PDF downloads and remote bot control. Add Docker configuration, environment variables, and a GUI for agent management. Enhance README with bot details and installation instructions.
This commit is contained in:
@@ -151,6 +151,33 @@ services:
|
||||
limits:
|
||||
memory: ${COUNT_API_MEMORY:-4g}
|
||||
|
||||
bot-descarga:
|
||||
build:
|
||||
context: ./services/bot_descarga
|
||||
dockerfile: Dockerfile
|
||||
container_name: ipsextractor-bot-descarga
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
BOT_API_TOKEN: ${BOT_API_TOKEN:-dev-token-change-me}
|
||||
BOT_API_HOST: 0.0.0.0
|
||||
BOT_API_PORT: "8200"
|
||||
DATABASE_URL: postgresql+psycopg://ipsextractor:ipsextractor@database:5432/ipsextractor
|
||||
MINIO_ENDPOINT: ${MINIO_ENDPOINT:-https://s3.builker.xyz}
|
||||
MINIO_BUCKET: ${MINIO_BUCKET:-pys-cuentas-medicas}
|
||||
MINIO_ANONYMOUS: ${MINIO_ANONYMOUS:-1}
|
||||
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-}
|
||||
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-}
|
||||
MINIO_REGION: ${MINIO_REGION:-us-east-1}
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://127.0.0.1:8200/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
|
||||
api_gateway:
|
||||
build:
|
||||
context: ./services/api_gateway
|
||||
@@ -163,10 +190,13 @@ services:
|
||||
condition: service_started
|
||||
count-api:
|
||||
condition: service_healthy
|
||||
bot-descarga:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
EXTRACTION_URL: http://extraction:8001
|
||||
CLEANING_URL: http://cleaning:8002
|
||||
COUNT_URL: http://count-api:8080
|
||||
BOT_DESCARGA_URL: http://bot-descarga:8200
|
||||
ports:
|
||||
# Único puerto expuesto al host. Los demás servicios solo son accesibles en la red Docker.
|
||||
- "0.0.0.0:8189:8000"
|
||||
|
||||
Reference in New Issue
Block a user