-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 1.31 KB
/
Copy pathdocker-compose.yml
File metadata and controls
57 lines (52 loc) · 1.31 KB
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
49
50
51
52
53
54
55
56
57
version: '3.8'
services:
web:
build: .
env_file:
- .env
ports:
- "8000:8000"
volumes:
- ./static:/app/static
- ./media:/app/media
- sqlite_data:/app
environment:
# AI Provider variables will be loaded from .env file
# Uncomment and modify these if you want to override .env values
# - MODEL_PROVIDER=ollama
# - OLLAMA_API_URL=http://ollama:11434/api/generate
# - OLLAMA_MODEL=llama3
# - GEMINI_API_KEY=your_api_key_here
# - GEMINI_MODEL=gemini-2.0-flash-exp
- DEBUG=1
- DEFAULT_LANGUAGE=en
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# only if you want to use ollama - set MODEL_PROVIDER=ollama in .env file, or set MODEL_PROVIDER=gemini in .env file
ollama:
image: docker.io/ollama/ollama:latest
ports:
- 7869:11434
volumes:
- .:/code
- ./ollama/ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: always
environment:
- OLLAMA_KEEP_ALIVE=24h
- OLLAMA_HOST=0.0.0.0
networks:
- ollama-docker
networks:
ollama-docker:
external: false
volumes:
ollama_data:
sqlite_data: