#!/bin/bash # Wait for Garage to be ready echo "Waiting for Garage to be ready..." until curl -s http://localhost:3902/health; do sleep 2 done # Set up the bucket echo "Creating bucket..." docker exec garage garage bucket create soaricarus-data # Set bucket permissions echo "Setting bucket permissions..." docker exec garage garage bucket allow soaricarus-data --read --write --owner echo "Garage setup complete!"