-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 1.15 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
services:
app:
image: aiagent # Uses the image name from the Dockerfile build
build:
context: . # Build context is current directory (where Dockerfile is)
ports:
- "${MCP_PORT:-8181}:8000" # Maps host port 8181 to container port 8000
environment:
- TMPDIR=/tmp
env_file:
- .env
volumes:
- ${DATA_PATH:-./data}:/data:rw,exec
tty: true # Keeps container running with interactive terminal
stdin_open: true # Enables interactive stdin
working_dir: /app # Sets working directory to /app
# Remote MCP Server (optional - can also run standalone with: uv run mcp_remote_server.py)
mcp-remote:
image: aiagent
build:
context: .
ports:
- "${MCP_REMOTE_PORT:-8888}:${MCP_REMOTE_PORT:-8888}"
environment:
- MCP_API_KEY=${MCP_API_KEY}
- MCP_REMOTE_PORT=${MCP_REMOTE_PORT:-8888}
- MCP_PORT=${MCP_PORT:-8181}
- USE_DOCKER=False
env_file:
- .env
command: uv run mcp_remote_server.py
depends_on:
- app
volumes:
- ${DATA_PATH:-./data}:/data:ro # Read-only access to data
tty: true
stdin_open: true
working_dir: /app