Skip to content

Install using Docker

Casper Bottelet edited this page Jul 7, 2020 · 6 revisions

To install CRM on docker, first you need to have installed Docker. For installation follow its official documentation (if you are a linux user you should also install docker-compose).

On the project path where CRM is cloned, run docker-compose up to build, create and start containers defined. If it is the first time you are using those images, it will first download the images from hub which may take some time. So it is time to grab a cup of coffee.

If nothing goes wrong you should see a couple of containers are running on your machine. To see them you can type: docker ps

For example, to connect to MySQL here is the credentials:

host: localhost
username: root
password: root
database: daybyday

Getting started:

The last couple of steps, from outside your docker container run the following commands:

docker-compose exec php composer install
docker-compose exec php php artisan migrate --seed
docker-compose exec php npm install
docker-compose exec php npm run dev    
    

To browse the CRM, you can go to localhost:80.

login in with these credentials

Mail: [email protected]

Password: admin123

Debugging

Sometimes you may need to bash into a specific container for debugging purposes. To do that:

docker ps
docker exec -it {CONTAINER_ID} bash

You can also use docker-compose exec {CONTAINER_NAME} bash

Clone this wiki locally