+# --- Caddyfile ----------------------------------------------------------------
+
+CADDY_RESTART_NEEDED=false
+sync_file "Caddyfile" "${DEPLOY_DIR}/Caddyfile" && CADDY_RESTART_NEEDED=true
+
+# --- HTML partials ------------------------------------------------------------
+
+for file in "${HTML_FILES[@]}"; do
+ sync_file "html/$file" "${DEPLOY_DIR}/$file" || true
+done
+
+# --- docker-compose.yaml -----------------------------------------------------
+
+git show HEAD:"$COMPOSE_FILE" > /dev/null 2>&1 \
+ || panic "$COMPOSE_FILE not found in repository"
+
+if sync_file "$COMPOSE_FILE" "${DEPLOY_DIR}/$COMPOSE_FILE"; then
+ log "Rebuilding Docker containers..."
+ cd "$DEPLOY_DIR"