refactor: use explicit env vars in docker-compose files
Replace env_file with explicit environment variables to allow composing grist-mcp with other services without .env conflicts.
This commit is contained in:
@@ -9,8 +9,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../../src:/app/src:ro
|
- ../../src:/app/src:ro
|
||||||
- ../../config.yaml:/app/config.yaml:ro
|
- ../../config.yaml:/app/config.yaml:ro
|
||||||
env_file:
|
environment:
|
||||||
- .env
|
- GRIST_MCP_TOKEN=${GRIST_MCP_TOKEN}
|
||||||
|
- CONFIG_PATH=/app/config.yaml
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:3000/health')"]
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:3000/health')"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ services:
|
|||||||
- "${PORT:-3000}:3000"
|
- "${PORT:-3000}:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.yaml:/app/config.yaml:ro
|
- ./config.yaml:/app/config.yaml:ro
|
||||||
env_file:
|
environment:
|
||||||
- .env
|
- GRIST_MCP_TOKEN=${GRIST_MCP_TOKEN}
|
||||||
|
- CONFIG_PATH=/app/config.yaml
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
Reference in New Issue
Block a user