-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 869 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (29 loc) · 869 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
services:
web_server:
build: .
container_name: chatBot
privileged: true
user: root
ports:
- "85:80" # Apache
- "5001:5001" # Flask API
volumes:
- ./frontend:/usr/local/apache2/htdocs
- ./backend:/usr/local/apache2/cgi-bin
- ./backend/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
restart: unless-stopped
environment:
- TZ=Europe/London
- OLLAMA_ORIGINS=https://janosrostas.co.uk,http://localhost,http://127.0.0.1,http://192.168.1.130 # Resolve browser CORS issue
depends_on:
- ollama # Ensure ollama is ready before starting
ollama:
image: ollama/ollama
container_name: ollama
ports:
- "11434:11434" # Ollama API
volumes:
- ollama_models:/root/.ollama # Persist models
restart: unless-stopped
volumes:
ollama_models: