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