-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-http.yml
More file actions
65 lines (53 loc) · 1.33 KB
/
Copy pathdocker-compose-http.yml
File metadata and controls
65 lines (53 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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