#!/bin/bash set -euo pipefail apt-get update apt-get install -y docker-engine docker-compose mkdir -p /mnt/additional /opt/testapp mountpoint -q /mnt/additional || mount -o ro /dev/sr0 /mnt/additional systemctl enable --now docker docker load -i /mnt/additional/docker/site_latest.tar docker load -i /mnt/additional/docker/mariadb_latest.tar # Use exactly the supplied compose; do not substitute the old 2026 stack. cp /mnt/additional/compose.yaml /opt/testapp/compose.yaml cmp /mnt/additional/compose.yaml /opt/testapp/compose.yaml cd /opt/testapp docker compose config -q docker compose up -d for attempt in $(seq 1 60); do curl -fsS http://127.0.0.1:8080/ >/dev/null && break; sleep 2; done curl --fail http://127.0.0.1:8080/ docker compose ps