Modify mcpservers commands to run indefinitely
Updated commands for mcpservers to keep containers running indefinitely.
This commit is contained in:
1 parent
86930dca40
commit
7612048801
1 file changed
+7
-5
@@ -7,13 +7,15 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- OLLAMA_HOST=http://10.1.10.9:11434
|
- OLLAMA_HOST=http://10.1.10.9:11434
|
||||||
network_mode: host
|
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:
|
spotify-mcp:
|
||||||
image: node:20-alpine
|
image: node:20-alpine
|
||||||
container_name: spotify-mcp-server
|
container_name: spotify-mcp-server
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
working_dir: /app
|
stdin_open: true
|
||||||
volumes:
|
tty: false
|
||||||
- ./spotify-mcp:/app
|
command: sh -c "while true; do sleep 3600; done"
|
||||||
command: sh -c "npm install && npm run build && node build/index.js"
|
|
||||||
Reference in new issue
Block a user