forked from vogler75/graphql-mcp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (30 loc) · 918 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (30 loc) · 918 Bytes
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
version: '3.8'
services:
graphql-mcp-server:
build: .
image: graphql-mcp-server:latest
container_name: graphql-mcp-server
# For stdio transport (default)
stdin_open: true
tty: true
# For HTTP transport, uncomment these lines:
# ports:
# - "8080:8080"
# command: ["node", "src/index.js", "--transport", "http", "--port", "8080"]
# Environment variables (if needed)
environment:
- NODE_ENV=production
# Uncomment to enable bearer token authentication for MCP requests
# - AUTH_TOKEN=your-secret-token-here
# Mount config file if using external configuration
volumes:
- ./exposed.yaml:/app/exposed.yaml
# Restart policy
restart: unless-stopped
# Resource limits (adjust as needed)
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 128M