Installing ElmapiCMS with Docker
This guide explains how to run ElmapiCMS v3 with Docker using GitHub access.
We recommend Laravel Sail.
Bought on CodeCanyon?
Use the CodeCanyon Docker guide instead.
Clone the repository
cd ~/projects
git clone [email protected]:elmapicms/elmapicms.git Elmapi3
cd Elmapi3Install PHP dependencies
composer installTroubleshooting
If composer install fails, download vendor.zip from Releases and copy it into Elmapi3, extract it, and try again.
Copy environment and generate key
cp .env.example .env
php artisan key:generateInstall Laravel Sail
php artisan sail:installStart Sail
./vendor/bin/sail upRun database migrations and seed sample data
./vendor/bin/sail artisan migrate --seedTroubleshooting
If containers misbehave, try ./vendor/bin/sail down -v && ./vendor/bin/sail up.
Troubleshooting
If migrations fail, download elmapi3.sql from Releases and import it.
Build the frontend
./vendor/bin/sail npm install && ./vendor/bin/sail npm run buildVisit the site
Open http://localhost.
Login
Email:
[email protected]Password:
passwordAdditional configuration
Database
SQLite is the default. For MySQL/MariaDB, update .env. See Laravel database configuration.
DB_CONNECTION=mysql
DB_DATABASE=elmapicms_v3
DB_USERNAME=root
DB_PASSWORD=Development
./vendor/bin/sail composer run dev