-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 1.58 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
services:
cornerstone:
image: steilerdev/cornerstone:latest
ports:
- "${PORT:-3000}:3000"
volumes:
- cornerstone-data:/app/data
- cornerstone-backups:/backups
env_file:
- .env
# Optional configuration — add to your .env file:
# environment:
# - EXTERNAL_URL=https://myhouse.example.com # Public-facing base URL (required behind reverse proxy)
# - CURRENCY=EUR # ISO 4217 currency code for display (default: EUR)
# - PAPERLESS_URL=http://paperless:8000 # Internal URL used by the server for API calls
# - PAPERLESS_API_TOKEN=your-paperless-api-token
# - PAPERLESS_EXTERNAL_URL=https://paperless.example.com # Optional: browser-accessible URL for "View in Paperless-ngx" links
# - PAPERLESS_FILTER_TAG=cornerstone # Optional: only show documents with this Paperless-ngx tag
# - BACKUP_DIR=/backups # Backup destination directory (default: /backups)
# - BACKUP_CADENCE=0 2 * * * # Cron expression for scheduled backups (e.g., daily at 2 AM)
# - BACKUP_RETENTION=7 # Maximum number of backup archives to retain
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:3000/api/health').then(r=>{if(!r.ok)throw r.status}).catch(()=>process.exit(1))"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
volumes:
cornerstone-data:
cornerstone-backups: