-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
45 lines (42 loc) · 993 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
ollama:
build:
context: .
dockerfile: dockerfiles/dockerfile.ollama
container_name: ollama-service
ports:
- "${OLLAMA_PORT}:11434"
environment:
- OLLAMA_HOST=${OLLAMA_HOST}
restart: unless-stopped
setfit:
build:
context: .
dockerfile: dockerfiles/dockerfile.setfit
container_name: setfit-service
ports:
- "${SETFIT_PORT}:8000"
environment:
- HOST=${SETFIT_HOST}
- PORT=${SETFIT_PORT}
restart: unless-stopped
app:
build:
context: .
dockerfile: dockerfiles/dockerfile.ui
container_name: ui-service
ports:
- "${UI_PORT}:7860"
environment:
- HOST=${UI_HOST}
- PORT=${UI_PORT}
- OLLAMA_HOST=${DOCKER_OLLAMA_BASE_URL}
- SETFIT_BASE_URL=${DOCKER_SETFIT_BASE_URL}
depends_on:
ollama:
condition: service_started
setfit:
condition: service_started
restart: unless-stopped
volumes:
ollama_data: