chore: add deployment configuration

- docker-compose.yml for VPS deployment
- deploy.sh for auto-updates
- Fixed package.json name

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Michele
2026-01-31 14:25:01 +01:00
parent e58a79fd2c
commit 8b84fae379
3 changed files with 45 additions and 1 deletions

16
deploy.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -e
PROJECT_DIR="/opt/lab-leopost"
cd "$PROJECT_DIR"
echo "[$(date)] Auto-deploy triggered" >> deploy.log
# Pull latest
git pull origin main
# Rebuild e restart
docker compose build --no-cache
docker compose up -d
echo "[$(date)] Auto-deploy completed" >> deploy.log