Replace env_file with explicit environment variables to allow composing grist-mcp with other services without .env conflicts.
21 lines
580 B
YAML
21 lines
580 B
YAML
# Development environment - hot reload, persistent data
|
|
services:
|
|
grist-mcp:
|
|
build:
|
|
context: ../..
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "${PORT:-3000}:3000"
|
|
volumes:
|
|
- ../../src:/app/src:ro
|
|
- ../../config.yaml:/app/config.yaml:ro
|
|
environment:
|
|
- GRIST_MCP_TOKEN=${GRIST_MCP_TOKEN}
|
|
- CONFIG_PATH=/app/config.yaml
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:3000/health')"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|