-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.28 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
58
59
60
61
62
63
services:
backend:
build: ./backend
container_name: vector_backend
restart: unless-stopped
volumes:
- ./backend/data:/app/data
- ./frontend:/frontend:ro
env_file:
- .env
expose:
- "8000"
depends_on:
- ollama
networks:
- vector_net
ollama:
image: ollama/ollama:latest
container_name: vector_ollama
restart: unless-stopped
volumes:
- ollama_data:/root/.ollama
expose:
- "11434"
networks:
- vector_net
nginx:
image: nginx:alpine
container_name: vector_nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/certbot/conf:/etc/letsencrypt:ro
- ./nginx/certbot/www:/var/www/certbot:ro
depends_on:
- backend
networks:
- vector_net
certbot:
image: certbot/certbot
container_name: vector_certbot
volumes:
- ./nginx/certbot/conf:/etc/letsencrypt
- ./nginx/certbot/www:/var/www/certbot
entrypoint: >
sh -c "trap exit TERM;
while :; do
certbot renew --webroot -w /var/www/certbot --quiet;
sleep 12h;
done"
volumes:
ollama_data:
networks:
vector_net:
driver: bridge