Installing ElmapiCMS with Docker

Installing ElmapiCMS with Docker

This guide explains how to run ElmapiCMS 4.0 with Docker from the private repository.

We recommend Laravel Sail.

Bought on CodeCanyon?

Extract elmapicms.zip first — see For CodeCanyon buyers — then skip Clone the repository below and continue from the next install steps.

Clone the repository

cd ~/projects
git clone [email protected]:elmapicms/elmapicms.git elmapicms
cd elmapicms

Install PHP dependencies

composer install

Troubleshooting

If composer install fails, download vendor.zip from Releases and copy it into elmapicms, extract it, and try again.

Copy environment and generate key

cp .env.example .env
php artisan key:generate

Install Laravel Sail

php artisan sail:install

Start Sail

./vendor/bin/sail up

Run database migrations and seed sample data

./vendor/bin/sail artisan migrate --seed

Troubleshooting

If containers misbehave, try ./vendor/bin/sail down -v && ./vendor/bin/sail up.

Troubleshooting

If migrations fail, download elmapicms.sql from Releases and import it.

Build the frontend

./vendor/bin/sail npm install && ./vendor/bin/sail npm run build

Visit the site

Open http://localhost.

Login

Email:

[email protected]

Password:

password

Additional configuration

Database

SQLite is the default. For MySQL/MariaDB, update .env. See Laravel database configuration.

DB_CONNECTION=mysql
DB_DATABASE=elmapicms
DB_USERNAME=root
DB_PASSWORD=

Development

./vendor/bin/sail composer run dev

Next step

Search documentation

Find guides and reference pages