tweaking compose

This commit is contained in:
2026-02-11 22:30:59 -05:00
parent 310678b279
commit f2496916f9
+6 -9
View File
@@ -3,11 +3,6 @@ services:
image: git.fabledsword.com/bvandeusen/fabledassistant:latest
ports:
- "5000:5000"
depends_on:
db:
condition: service_healthy
ollama:
condition: service_started
environment:
DATABASE_URL: "postgresql+asyncpg://fabled:${DB_PASSWORD}@db:5432/fabledassistant"
SECRET_KEY: "${SECRET_KEY}"
@@ -55,11 +50,11 @@ services:
networks:
- fabledassistant_backend
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/"]
test: ["CMD-SHELL", "ollama list || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
retries: 5
start_period: 30s
deploy:
placement:
constraints:
@@ -69,7 +64,7 @@ services:
memory: 8G
restart_policy:
condition: on-failure
max_attempts: 3
max_attempts: 5
# To enable GPU support, uncomment the section below
# (requires nvidia-container-toolkit)
# deploy:
@@ -86,5 +81,7 @@ volumes:
networks:
fabledassistant_frontend:
driver: overlay
fabledassistant_backend:
driver: overlay
internal: true