forked from geelen/mcp-remote
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (31 loc) · 903 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (31 loc) · 903 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
38
39
40
41
version: '3.8'
services:
mcp-remote:
build: .
image: mcp-remote:latest
container_name: mcp-remote
# Mount auth directory for token persistence
volumes:
- mcp-auth:/home/mcp/.mcp-auth
# Environment variables
environment:
# Set debug mode (optional)
# - DEBUG=true
# Custom headers (optional)
# - AUTH_TOKEN=your-token-here
# For OAuth callback, you might need to expose the port
# Uncomment if running OAuth flow inside container
# ports:
# - "3334:3334"
# Override command with your remote server URL
# Example: docker-compose run mcp-remote https://remote.mcp.server/sse
command: ['--help']
# Run as non-root user
user: mcp
# Restart policy
restart: unless-stopped
# Network mode - use host for OAuth callback to work
# network_mode: host
volumes:
mcp-auth:
driver: local