This guide walks you through setting up Hi.Events using Docker, including requirements, setup steps, configuration, and environment variables.
- Docker – Required for containerized development. Install Docker
- Git – Needed to clone the repository. Install Git
Note: This guide assumes a macOS or Linux environment by default. See the Windows setup instructions below if you're on Windows.
git clone git@github.com:HiEventsDev/Hi.Events.gitNavigate to the Docker development directory and run the startup script:
cd Hi.Events/docker/development
./start-dev.shOnce running, access the app at:
- Frontend: https://localhost:8443
Windows users should follow the steps below to manually run the setup commands instead of using the start-dev.sh script.
Using Git Bash or Windows Terminal:
git clone git@github.com:HiEventsDev/Hi.Events.git
cd Hi.Events/docker/developmentYou can use openssl to generate self-signed certificates:
mkdir -p certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout certs/localhost.pem.key -out certs/localhost.pem -subj "/CN=localhost"Then, update your docker/development/nginx/nginx.conf to use .pem files:
ssl_certificate /etc/nginx/certs/localhost.pem;
ssl_certificate_key /etc/nginx/certs/localhost.pem.key;If you're using
.crt/.key, update accordingly.
docker-compose -f docker-compose.dev.yml up -ddocker-compose -f docker-compose.dev.yml exec -T backend composer install --ignore-platform-reqs --no-interaction --optimize-autoloader --prefer-distKeep checking logs until you see "ready to accept connections":
docker-compose -f docker-compose.dev.yml logs pgsqldocker-compose -f docker-compose.dev.yml exec backend cp .env.example .env
docker-compose -f docker-compose.dev.yml exec frontend cp .env.example .envdocker-compose -f docker-compose.dev.yml exec backend php artisan key:generate
docker-compose -f docker-compose.dev.yml exec backend php artisan migrate
docker-compose -f docker-compose.dev.yml exec backend chmod -R 775 /var/www/html/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer
docker-compose -f docker-compose.dev.yml exec backend php artisan storage:linkstart https://localhost:8443/auth/registerHi.Events uses environment variables for configuration. You’ll find .env files in:
frontend/.envbackend/.env
You can modify these to customize your setup.
For a full list of environment variables, see the Environment Variables Documentation.