docker-compose.yml•1.18 kB
version: '3.8'
services:
unimus-mcp:
build: .
image: unimus-mcp-server:latest
container_name: unimus-mcp-server
# Environment variables (can be overridden with .env file)
environment:
- UNIMUS_URL=${UNIMUS_URL:-http://localhost:8080}
- UNIMUS_TOKEN=${UNIMUS_TOKEN:-your-token-here}
# Port mapping (optional, mainly for health check access)
ports:
- "8080:8080"
# Health check configuration (using readiness probe)
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/readyz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# Restart policy
restart: unless-stopped
# Resource limits (adjust based on your needs)
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
reservations:
memory: 256M
cpus: '0.1'
# Logging configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Optional: Example with custom network
# networks:
# - unimus-network
# networks:
# unimus-network:
# driver: bridge