docker-compose.yml•953 B
services:
  tomtom-mcp:
    container_name: tomtom-mcp
    build:
      context: .
      dockerfile: Dockerfile
      args:
        VERSION: "latest"
    environment:
      # Server configuration
      - PORT=3000
      # Maps backend configuration (genesis or orbis)
      - MAPS=genesis
      # CORS settings (optional)
      # - ALLOWED_ORIGINS=http://localhost:3000,https://yourapp.com
    ports:
      - "3000:3000"
    volumes:
      # Mount a volume for logs and cache to improve performance
      - tomtom-mcp-data:/app/.cache
    # Health check to verify the server is running properly
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s
    restart: unless-stopped
    # Limit memory to avoid any issues
    mem_limit: 4G
    init: true  # Proper signal handling
# Volumes definition
volumes:
  tomtom-mcp-data:
    driver: local