-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 850 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 850 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
services:
db:
image: postgres:15-alpine
container_name: documind_db
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password123
POSTGRES_DB: documind_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
backend:
build: .
container_name: documind_backend
restart: always
ports:
- "5000:5000"
environment:
- DATABASE_URL=postgresql://postgres:password123@db:5432/documind_db
- JWT_SECRET_KEY=dev-jwt-secret-key-999
- SECRET_KEY=dev-flask-secret-888
- OLLAMA_API_URL=http://host.docker.internal:11434/api
depends_on:
- db
volumes:
- ./documents:/app/documents
- ./indices:/app/indices
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
postgres_data: