site-library/ref/server/start.sh
2025-03-30 10:42:28 +02:00

17 lines
447 B
Bash

#!/bin/bash
echo "Starting PocketBase..."
docker-compose up -d
# Wait for the container to be ready
echo "Waiting for PocketBase to be ready..."
sleep 5
# Check if the container is running
if docker ps | grep -q pocketbase; then
echo "PocketBase is now running!"
echo "Admin UI: http://localhost:8090/_/"
echo "API: http://localhost:8090/api/"
else
echo "Failed to start PocketBase. Check the logs with: docker-compose logs"
fi