-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.04 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
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- LLM_PROVIDER=${LLM_PROVIDER:-gemini}
- LLM_API_KEY=${LLM_API_KEY}
- LLM_MODEL=${LLM_MODEL:-gemini-2.5-flash}
- LLM_API_URL=${LLM_API_URL}
- STORAGE_PROVIDER=${STORAGE_PROVIDER:-local}
- STORAGE_SQLITE_PATH=${STORAGE_SQLITE_PATH:-/app/data/libredb-storage.db}
- STORAGE_POSTGRES_URL=${STORAGE_POSTGRES_URL}
# Uncomment to enable pre-configured database connections:
# volumes:
# - ./seed-connections.yaml:/app/config/seed-connections.yaml:ro
# environment:
# SEED_CONFIG_PATH: /app/config/seed-connections.yaml
volumes:
- storage-data:/app/data
libredb-postgres:
image: postgres:17-alpine
container_name: libredb-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: libredb_storage
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
storage-data:
pgdata: