#!/bin/bash # Media Collector Docker Startup Script echo "🚀 Starting Media Collector with Docker..." # Check if .env file exists if [ ! -f .env ]; then echo "⚠️ .env file not found. Copying from .env.example..." cp .env.example .env echo "✅ .env file created. Please edit it with your configuration." fi # Check if database file exists if [ ! -f database/database.sqlite ]; then echo "📦 Database file not found. It will be created automatically." fi echo "🐳 Building and starting containers..." docker-compose up --build -d echo "" echo "🎉 Media Collector is now running!" echo "📱 Access the application at: http://localhost:8000" echo "🔐 Admin panel at: http://localhost:8000/admin" echo "" echo "📋 Useful commands:" echo " docker-compose logs -f # View logs" echo " docker-compose down # Stop containers" echo " docker-compose up -d # Start containers" echo " docker-compose exec app bash # Access PHP container" echo "" echo "🔧 For development with hot-reload:" echo " docker-compose --profile dev up" echo ""