Fix restart policy

This commit is contained in:
ben
2025-01-13 07:59:54 +01:00
parent cf4281e42c
commit d52860412a

View File

@@ -3,7 +3,7 @@ services:
image: ollama/ollama image: ollama/ollama
volumes: volumes:
- ollama:/root/.ollama - ollama:/root/.ollama
restart: always restart: unless-stopped
deploy: deploy:
resources: resources:
reservations: reservations:
@@ -54,6 +54,7 @@ services:
aichat-build: aichat-build:
build: build:
dockerfile: src/aichat/Dockerfile dockerfile: src/aichat/Dockerfile
restart: no
faster-whisper-server: faster-whisper-server:
image: fedirz/faster-whisper-server:latest-cuda image: fedirz/faster-whisper-server:latest-cuda
environment: environment:
@@ -67,6 +68,7 @@ services:
- driver: nvidia - driver: nvidia
count: all count: all
capabilities: [gpu] capabilities: [gpu]
restart: unless-stopped
healthcheck: healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8000' || exit 1 test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8000' || exit 1
interval: 30s interval: 30s
@@ -91,6 +93,8 @@ services:
- "11434:11434" - "11434:11434"
- "8000:8000" - "8000:8000"
- "8001:8001" - "8001:8001"
restart: unless-stopped
volumes: volumes:
ollama: ollama:
voices: voices: