add
This commit is contained in:
@@ -21,8 +21,9 @@ services:
|
||||
- PYTHONDONTWRITEBYTECODE=1 # Prevents Python from writing .pyc files
|
||||
- PYTHONUNBUFFERED=1 # Ensures Python output is sent straight to terminal
|
||||
depends_on:
|
||||
ollama:
|
||||
condition: service_healthy
|
||||
- ollama
|
||||
# ollama:
|
||||
# condition: service_healthy
|
||||
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
@@ -30,17 +31,17 @@ services:
|
||||
restart: on-failure
|
||||
networks:
|
||||
- mem0_network
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 60s
|
||||
# healthcheck:
|
||||
# test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
|
||||
# interval: 5s
|
||||
# timeout: 5s
|
||||
# retries: 10
|
||||
# start_period: 60s
|
||||
volumes:
|
||||
- ollama_data:/root/.ollama
|
||||
ports:
|
||||
- "11434:11434"
|
||||
profiles: ["gpu"]
|
||||
# profiles: ["gpu"]
|
||||
|
||||
volumes:
|
||||
ollama_data: {}
|
||||
|
||||
Reference in New Issue
Block a user