docker-compose-http.yml•1.36 kB
version: '3.8'
services:
fastmail-mcp-server-http:
build:
context: .
dockerfile: Dockerfile.http
image: fastmail-mcp-server-http:latest
container_name: fastmail-mcp-server-http
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- MCP_TRANSPORT=http
- PORT=3000
- FASTMAIL_API_TOKEN=${FASTMAIL_API_TOKEN}
- FASTMAIL_EMAIL=${FASTMAIL_EMAIL}
- FASTMAIL_SEND_AS=${FASTMAIL_SEND_AS:-${FASTMAIL_EMAIL}}
- FASTMAIL_ALIAS_DOMAIN=${FASTMAIL_ALIAS_DOMAIN:-fastmail.com}
- FASTMAIL_JMAP_URL=${FASTMAIL_JMAP_URL:-https://jmap.fastmail.com/jmap/session}
env_file:
- .env
deploy:
resources:
limits:
cpus: '0.5'
memory: 256M
reservations:
cpus: '0.1'
memory: 64M
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
- mcp-data:/app/data
networks:
- mcp-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
security_opt:
- no-new-privileges:true
volumes:
mcp-data:
driver: local
networks:
mcp-network:
driver: bridge