Modify mcpservers commands to run indefinitely

Updated commands for mcpservers to keep containers running indefinitely.
This commit is contained in:
MisticDruid authored and GitHub committed 2026-01-28 18:35:53 +01:00
1 parent 86930dca40
commit 7612048801
1 file changed
+7 -5
+7 -5
View File
@@ -7,13 +7,15 @@ services:
environment:
- OLLAMA_HOST=http://10.1.10.9:11434
network_mode: host
command: sh -c "npx -y ollama-mcp-server"
stdin_open: true
tty: false
command: sh -c "while true; do sleep 3600; done"
# ^ Container blijft draaien en wacht op exec commando's
spotify-mcp:
image: node:20-alpine
container_name: spotify-mcp-server
restart: unless-stopped
working_dir: /app
volumes:
- ./spotify-mcp:/app
command: sh -c "npm install && npm run build && node build/index.js"
stdin_open: true
tty: false
command: sh -c "while true; do sleep 3600; done"