-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.21 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
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
volumes:
- ./data:/app/data
environment:
- DATAVISOR_DB_PATH=/app/data/datavisor.duckdb
- DATAVISOR_QDRANT_PATH=/app/data/qdrant
- DATAVISOR_THUMBNAIL_CACHE_DIR=/app/data/thumbnails
- DATAVISOR_VLM_DEVICE=cpu
- DATAVISOR_BEHIND_PROXY=true
restart: unless-stopped
stop_grace_period: 30s
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
frontend:
build:
context: ./frontend
dockerfile: ../Dockerfile.frontend
args:
NEXT_PUBLIC_API_URL: /api
depends_on:
- backend
restart: unless-stopped
caddy:
image: caddy:2-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
environment:
- DOMAIN=${DOMAIN:-localhost}
- AUTH_USERNAME=${AUTH_USERNAME:-admin}
- AUTH_PASSWORD_HASH=${AUTH_PASSWORD_HASH}
depends_on:
- frontend
- backend
restart: unless-stopped
volumes:
caddy_data:
caddy_config: