Add production deployment config (Caddy + docker compose)

This commit is contained in:
Dodo
2026-06-13 10:40:16 +07:00
parent 2d46279f36
commit 70a3975ed0
4 changed files with 98 additions and 0 deletions
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
# Deploys the current main branch to production over SSH + Docker Compose.
# Usage: ./deploy.sh
SERVER="root@159.223.38.184"
SSH_KEY="$HOME/.ssh/id_ed25519"
APP_DIR="/root/pba-new"
ssh -i "$SSH_KEY" "$SERVER" "cd $APP_DIR && git pull --ff-only && docker compose -f docker-compose.prod.yml --env-file .env up -d --build && docker compose -f docker-compose.prod.yml ps"