[31388f42] Dockerize lead-engine: Add service to docker-compose.yml, update nginx proxy, fix Dockerfile deps

This commit is contained in:
2026-03-02 07:49:17 +00:00
parent 7e51ef97e8
commit a25f5b67e5
3 changed files with 21 additions and 3 deletions

View File

@@ -244,6 +244,24 @@ services:
DB_PATH: "/app/connector_queue.db"
COMPANY_EXPLORER_URL: "http://company-explorer:8000"
lead-engine:
build:
context: ./lead-engine
dockerfile: Dockerfile
container_name: lead-engine
restart: unless-stopped
ports:
- "8501:8501"
env_file:
- .env
environment:
PYTHONUNBUFFERED: "1"
COMPANY_EXPLORER_URL: "http://company-explorer:8000"
volumes:
- ./lead-engine:/app
# We need to mount the root connector module so it can be imported inside the container
- ./company_explorer_connector.py:/app/company_explorer_connector.py
# --- INFRASTRUCTURE SERVICES ---
duckdns:
image: lscr.io/linuxserver/duckdns:latest

View File

@@ -4,7 +4,8 @@ WORKDIR /app
COPY . .
RUN pip install streamlit pandas
# Install dependencies required for ingestion and DB
RUN pip install streamlit pandas requests python-dotenv
ENV PYTHONUNBUFFERED=1
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]

View File

@@ -153,8 +153,7 @@ http {
location /lead/ {
# Lead Engine (TradingTwins)
# Proxying external service on host
proxy_pass http://192.168.178.6:8501/;
proxy_pass http://lead-engine:8501/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;