version: '3.8' services: mcp-connector: build: context: . dockerfile: Dockerfile container_name: ndc-mcp-connector ports: - "8080:8080" # Option 1: Use env_file to load environment variables from .env env_file: - .env # Option 2: Uncomment to mount .env file directly # volumes: # - ./.env:/app/.env:ro # - ./configuration:/etc/connector:ro volumes: - ./configuration:/etc/connector:ro restart: unless-stopped healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Optional: Set resource limits deploy: resources: limits: cpus: '1' memory: 512M reservations: cpus: '0.5' memory: 256M # Optional: Add logging configuration logging: driver: "json-file" options: max-size: "10m" max-file: "3"