-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.sqlite.yml
More file actions
35 lines (33 loc) · 951 Bytes
/
docker-compose.sqlite.yml
File metadata and controls
35 lines (33 loc) · 951 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
# Docker Compose for Internal SQLite Database Mode
# Single worker recommended - data persists in volume
# Good balance of performance and data persistence
services:
rva-app:
image: ${RVA_IMAGE:-razor29/rva:latest}
build:
context: .
dockerfile: Dockerfile
container_name: rva-sqlite
environment:
# Database configuration
DB_MODE: sqlite
DB_SQLITE_PATH: /app/data/db.sqlite
# Single worker for SQLite (SQLite has limited concurrency)
UVICORN_WORKERS: 1
# Optional: Enable detailed access logging
ENABLE_ACCESS_LOG: "false"
ports:
- "${RVA_PORT:-8060}:80"
volumes:
# Persist SQLite database
- rva-sqlite-data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
rva-sqlite-data:
name: rva-sqlite-data