-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (105 loc) · 2.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
111 lines (105 loc) · 2.35 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
ports: !override []
environment:
POSTGRES_USER: ${POSTGRES_USER:-minirag}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
POSTGRES_DB: ${POSTGRES_DB:-minirag}
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
volumes:
- pgdata:/var/lib/postgresql/data
deploy:
resources:
limits:
memory: 512M
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
qdrant:
image: qdrant/qdrant:v1.13.2
restart: unless-stopped
ports: !override []
volumes:
- qdrant_data:/qdrant/storage
deploy:
resources:
limits:
memory: 1G
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
redis:
image: redis:7-alpine
restart: unless-stopped
ports: !override []
deploy:
resources:
limits:
memory: 128M
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
web:
build:
context: .
target: web
restart: unless-stopped
ports: !override []
env_file: .env
depends_on:
- postgres
- qdrant
- redis
deploy:
resources:
limits:
memory: 512M
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
networks:
- default
- proxy-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.minirag.rule=Host(`mini-rag.de`) || Host(`www.mini-rag.de`)"
- "traefik.http.routers.minirag.entrypoints=websecure"
- "traefik.http.routers.minirag.tls.certresolver=httpresolver"
- "traefik.http.routers.minirag.tls.domains[0].main=mini-rag.de"
- "traefik.http.routers.minirag.tls.domains[0].sans=www.mini-rag.de"
- "traefik.http.services.minirag.loadbalancer.server.port=8000"
worker:
build:
context: .
target: worker
restart: unless-stopped
env_file: .env
depends_on:
- postgres
- qdrant
- redis
deploy:
resources:
limits:
memory: 512M
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
pgdata:
qdrant_data:
networks:
proxy-network:
external: true