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