This commit is contained in:
huaqingxu
2026-03-06 22:24:58 +08:00
parent 77bf04c8c9
commit 7c3f4c0e39

View File

@@ -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: {}