-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (73 loc) · 2.13 KB
/
docker-compose.yml
File metadata and controls
77 lines (73 loc) · 2.13 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
66
67
68
69
70
71
72
73
74
75
76
77
services:
gdrive-mcp:
build: .
container_name: gdrive-mcp-server
volumes:
- ./credentials:/credentials
- ./data:/data
- ./logs:/app/logs
environment:
- NODE_ENV=production
- LOG_LEVEL=silent
- REDIS_URL=redis://redis:6379
- GDRIVE_OAUTH_PATH=/credentials/gcp-oauth.keys.json
- GDRIVE_TOKEN_STORAGE_PATH=/credentials/.gdrive-mcp-tokens.json
- GDRIVE_TOKEN_AUDIT_LOG_PATH=/app/logs/gdrive-mcp-audit.log
- GDRIVE_TOKEN_ENCRYPTION_KEY=${GDRIVE_TOKEN_ENCRYPTION_KEY}
- GDRIVE_TOKEN_REFRESH_INTERVAL=1800000
- GDRIVE_TOKEN_PREEMPTIVE_REFRESH=600000
- GDRIVE_TOKEN_MAX_RETRIES=3
- GDRIVE_TOKEN_RETRY_DELAY=1000
- GDRIVE_TOKEN_HEALTH_CHECK=true
restart: unless-stopped
stdin_open: true
tty: true
depends_on:
- redis
networks:
- mcp-network
healthcheck:
test: ["CMD", "node", "dist/index.js", "health"]
interval: 5m
timeout: 10s
retries: 3
start_period: 30s
# Authentication service (kept for reference but not used)
# Authentication should be done on the host using ./scripts/auth.sh
# gdrive-mcp-auth:
# build: .
# container_name: gdrive-mcp-auth
# volumes:
# - ./credentials:/credentials
# - ./data:/data
# - ./logs:/app/logs
# environment:
# - NODE_ENV=development
# - LOG_LEVEL=info
# - GDRIVE_CREDENTIALS_PATH=/credentials/.gdrive-server-credentials.json
# - GDRIVE_OAUTH_PATH=/credentials/gcp-oauth.keys.json
# - GDRIVE_TOKEN_STORAGE_PATH=/credentials/.gdrive-mcp-tokens.json
# - GDRIVE_TOKEN_AUDIT_LOG_PATH=/app/logs/gdrive-mcp-audit.log
# - GDRIVE_TOKEN_ENCRYPTION_KEY=${GDRIVE_TOKEN_ENCRYPTION_KEY}
# network_mode: host
# stdin_open: true
# tty: true
# profiles:
# - auth
redis:
image: redis:7-alpine
container_name: gdrive-mcp-redis
volumes:
- redis_data:/data
networks:
- mcp-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 3s
retries: 3
volumes:
redis_data:
networks:
mcp-network:
driver: bridge