-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (36 loc) · 1.6 KB
/
docker-compose.yaml
File metadata and controls
40 lines (36 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3.8'
services:
analyzer_app: # Your Streamlit Dashboard
build:
context: .
dockerfile: Dockerfile.streamlit # Corrected: Use the renamed Dockerfile
image: spamfake2022/streamlit-analyzer-app:${TAG:-latest}
container_name: streamlit_dashboard
ports:
- "8502:8502"
environment:
# For tomlConfig.sh in analyzer_app
GROQ_API_KEY_ENV: "${GROQ_API_KEY_RUNTIME?Please set GROQ_API_KEY_RUNTIME in .env}"
DB_HOST_ENV: "${DB_HOST_RUNTIME?Please set DB_HOST_RUNTIME in .env}"
DB_USER_ENV: "${DB_USER_RUNTIME?Please set DB_USER_RUNTIME in .env}"
DB_PASSWORD_ENV: "${DB_PASSWORD_RUNTIME?Please set DB_PASSWORD_RUNTIME in .env}" # Can be empty
DB_NAME_ENV: "${DB_NAME_RUNTIME?Please set DB_NAME_RUNTIME in .env}"
# For Streamlit app (02_Enrichissement_LLM.py) to find the MCP server
MCP_SERVER_URL_ENV: "http://mcp_server:8001" # Service name DNS resolution
depends_on:
- mcp_server
restart: unless-stopped
mcp_server: # Your FastAPI MCP Server
build:
context: .
dockerfile: Dockerfile.server # Corrected: Use the renamed Dockerfile
image: spamfake2022/mcp-server:${TAG:-latest}
container_name: mcp_tool_server
ports:
- "8001:8001"
environment:
DB_HOST_ENV: "${DB_HOST_RUNTIME?Please set DB_HOST_RUNTIME in .env}"
DB_USER_ENV: "${DB_USER_RUNTIME?Please set DB_USER_RUNTIME in .env}"
DB_PASSWORD_ENV: "${DB_PASSWORD_RUNTIME?Please set DB_PASSWORD_RUNTIME in .env}"
DB_NAME_ENV: "${DB_NAME_RUNTIME?Please set DB_NAME_RUNTIME in .env}"
restart: unless-stopped