-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 1.12 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
services:
app:
build: .
ports:
- '3000:3000'
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD:?REDIS_PASSWORD is required for Docker Compose}
- NODE_ENV=production
- MOCK_LLM=${MOCK_LLM}
- JWT_SECRET=${JWT_SECRET}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- SQLITE_ENCRYPTION_KEY=${SQLITE_ENCRYPTION_KEY}
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS}
- DISABLE_SQLITE_WAL=true
- OLLAMA_BASE_URL_DEFAULT=${OLLAMA_BASE_URL_DEFAULT:-}
- OLLAMA_PULL_HOST=${OLLAMA_PULL_HOST:-}
volumes:
- ./uploads:/app/uploads
- ./data:/app/data
depends_on:
- redis
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:3000/health']
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
redis:
image: redis:7-alpine
command: redis-server --requirepass ${REDIS_PASSWORD:?REDIS_PASSWORD is required for Docker Compose}
volumes:
- redis_data:/data
restart: unless-stopped
volumes:
redis_data: