Files
docker-bash-mcp/docker-compose.yml
T
Sidney Marvin Fricke 23558ebe82 make workspace path configurable via WORKSPACE_PATH env var
Defaults to '.' (current directory) if not set, so existing setups
work unchanged. Override with: WORKSPACE_PATH=/my/path docker compose up
2026-06-24 12:21:09 +02:00

25 lines
591 B
YAML

services:
mcp-bash:
image: python:3.12-slim
container_name: mcp-bash
restart: unless-stopped
working_dir: /app
command: |
bash -c "
apt-get update -qq &&
apt-get install -y --no-install-recommends curl wget git vim nano htop procps jq less unzip &&
pip install -q -r requirements.txt &&
python -u main.py"
ports:
- "8000:8000"
volumes:
- ./server:/app:ro
- ${WORKSPACE_PATH:-.}:/workspace
- pip-cache:/root/.cache/pip
environment:
- PYTHONUNBUFFERED=1
tty: true
volumes:
pip-cache: