-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1020 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 1020 Bytes
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
46
47
48
services:
api:
build:
context: .
dockerfile: Dockerfile
container_name: weg_api
depends_on:
- ollama
ports:
- "8000:8000"
env_file: .env
volumes:
- ./data:/app/data
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
frontend:
build:
context: .
dockerfile: Dockerfile
container_name: weg_frontend
ports:
- "8501:8501"
environment:
- API_URL=http://api:8000
command: streamlit run app_frontend.py --server.port=8501 --server.address=0.0.0.0
depends_on:
- api
ollama:
image: ollama/ollama:latest
container_name: ollama_service
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
ollama-pull-model:
image: ollama/ollama:latest
container_name: ollama_pull_model
volumes:
- ollama_data:/root/.ollama
entrypoint: /bin/sh
command: -c "ollama serve & sleep 5 && ollama pull mistral"
depends_on:
- ollama
volumes:
ollama_data: