Add Docker deployment for ZimaOS
- Updated Dockerfile for local storage deployment (removed Firebase dependencies) - Created docker-compose.yml with persistent data volumes - Added deploy.sh script for automated deployment - Created DEPLOYMENT.md with ZimaOS deployment guide - Added .env.example for configuration template - Updated .gitignore to protect sensitive data - Fixed package.json to use port 7654 in production - Cleared all test user data for fresh deployment - Updated README with deployment section
This commit is contained in:
1 parent
0b9ab53266
commit
ad37bb57ae
8 files changed
+273
-27
No files matched your search
+10
-4
@@ -1,15 +1,21 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
budget-app:
|
||||
image: ghcr.io/nmemmert/budget:dbaff55
|
||||
capsule:
|
||||
build: .
|
||||
container_name: capsule-budget
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "7654:7654"
|
||||
volumes:
|
||||
# Persist user data outside container
|
||||
- ./data:/app/data
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
# Generate a secure key: openssl rand -base64 32
|
||||
- ENCRYPTION_KEY=${ENCRYPTION_KEY:-change-this-to-a-secure-key}
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:7654"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in new issue
Block a user