Skip to content

Commit 94ddf01

Browse files
committed
docker: ollama 추가
1 parent a539a24 commit 94ddf01

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

backend/docker-compose.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,28 @@ services:
5858
timeout: 5s
5959
retries: 10
6060

61+
ollama:
62+
image: ollama/ollama:latest
63+
container_name: ollama
64+
restart: unless-stopped
65+
ports:
66+
- "11434:11434"
67+
volumes:
68+
- ollama-data:/root/.ollama
69+
entrypoint: [ "/bin/sh", "-c" ]
70+
command: >
71+
"ollama serve &
72+
sleep 5 &&
73+
ollama pull daynice/kure-v1:567m &&
74+
wait"
75+
healthcheck:
76+
test: [ "CMD", "curl", "-f", "http://localhost:11434/api/version" ]
77+
interval: 10s
78+
timeout: 5s
79+
retries: 10
80+
6181
volumes:
6282
mysql-data:
6383
redis-data:
64-
qdrant-data:
84+
qdrant-data:
85+
ollama-data:

0 commit comments

Comments
 (0)