-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 1.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (38 loc) · 1.09 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
# OpenCase Docker Compose Configuration
# Usage:
# Development: docker-compose up
# Production: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
# Rebuild: docker-compose up --build
version: '3.8'
services:
opencase:
build:
context: .
dockerfile: Dockerfile
container_name: opencase
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
# Encryption key for storing API credentials (change in production!)
- ENCRYPTION_KEY=opencase-default-key-32chars!!!
volumes:
# Persist D1 database data
- opencase-data:/app/.wrangler/state/v3/d1
# Mount seed.sql for initial data (optional)
- ./seed.sql:/app/seed.sql:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
opencase-data:
driver: local
# Optional: Add networks for multi-container setups
networks:
default:
name: opencase-network