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