refactor: remove placement constraints and healthcheck from services in openwebui.yml
This commit is contained in:
+2
-13
@@ -40,9 +40,6 @@ services:
|
|||||||
- net
|
- net
|
||||||
- traefik-public
|
- traefik-public
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- node.labels.open_webui.open_webui == true
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.swarm.network=traefik-public
|
- traefik.swarm.network=traefik-public
|
||||||
@@ -59,13 +56,12 @@ services:
|
|||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
|
|
||||||
chromadb:
|
chromadb:
|
||||||
hostname: chromadb
|
|
||||||
image: chromadb/chroma:latest
|
image: chromadb/chroma:latest
|
||||||
volumes:
|
volumes:
|
||||||
- chromadb:/data
|
- chromadb:/data
|
||||||
environment:
|
environment:
|
||||||
- IS_PERSISTENT=TRUE
|
- IS_PERSISTENT=true
|
||||||
- ALLOW_RESET=TRUE
|
- ALLOW_RESET=true
|
||||||
- PERSIST_DIRECTORY=/data
|
- PERSIST_DIRECTORY=/data
|
||||||
expose:
|
expose:
|
||||||
- 8000
|
- 8000
|
||||||
@@ -77,16 +73,9 @@ services:
|
|||||||
condition: any
|
condition: any
|
||||||
delay: 5s
|
delay: 5s
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "curl localhost:8000/api/v1/heartbeat || exit 1"]
|
|
||||||
interval: 10s
|
|
||||||
retries: 2
|
|
||||||
start_period: 5s
|
|
||||||
timeout: 10s
|
|
||||||
|
|
||||||
ollama:
|
ollama:
|
||||||
image: ollama/ollama:latest
|
image: ollama/ollama:latest
|
||||||
hostname: ollama
|
|
||||||
volumes:
|
volumes:
|
||||||
- ollama:/root/.ollama
|
- ollama:/root/.ollama
|
||||||
expose:
|
expose:
|
||||||
|
|||||||
Reference in New Issue
Block a user