Skip to content

krayin/krayin-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Krayin Dockerization

Introduction

Krayin CRM is a hand tailored CRM framework built on some of the hottest opensource technologies such as Laravel (a PHP framework) and Vue.js a progressive Javascript framework.

Free & Opensource Laravel CRM solution for SMEs and Enterprises for complete customer lifecycle management.

Read our documentation: Krayin CRM Docs

We also have a forum for any type of concerns, feature requests, or discussions. Please visit: Krayin CRM Forums

Requirements:

  • Krayin: v2.0.0 or higher.

What is Docker?

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. Docker can also be used for defining and running multi-container Docker applications using Docker-Compose tool.

With the help of docker-compose, one can define containers to be built, their configuration, links, volumes, ports etc in a single file and it gets launched by a single command. One can add multiple servers and services just by adding them to docker-compose configuration file. This configuration file is in YAML format.

System Requirements

  • System/Server requirements of Krayin are mentioned here. Using Docker, these requirements will be fulfilled by docker images of apache & mysql, and our application will run in a multi-tier architecture.

  • Install latest version of Docker and Docker Compose if it is not already installed. Docker supports Linux, MacOS and Windows Operating System. Click Docker and Docker Compose to find their installation guide.

Installation

  • Adjust your Apache, MySQL and PHPMyAdmin port.

    version: '3.1'
    
    services:
        krayin-php-apache:
            build:
                args:
                    container_project_path: /var/www/html/
                    uid: 1000 # add your uid here
                    user: $USER
                context: .
                dockerfile: ./Dockerfile
            image: krayin-php-apache
            ports:
                - 80:80 # adjust your port here, if you want to change
            volumes:
                - ./workspace/:/var/www/html/
    
        krayin-mysql:
            image: mysql:8.0
            command: --default-authentication-plugin=mysql_native_password
            restart: always
            environment:
                MYSQL_ROOT_HOST: '%'
                MYSQL_ROOT_PASSWORD: root
            ports:
                - 3306:3306 # adjust your port here, if you want to change
            volumes:
                - ./.configs/mysql-data:/var/lib/mysql/
    
        krayin-phpmyadmin:
            image: phpmyadmin:latest
            restart: always
            environment:
                PMA_HOST: krayin-mysql
                PMA_USER: root
                PMA_PASSWORD: root
            ports:
                - 8080:80 # adjust your port here, if you want to change
    
    volumes:
        mysql-data:
  • Run the below command and everything setup for you,

    sh setup.sh

After installation

  • To log in as admin.

    http(s)://your_server_endpoint/admin/login
    
    Email: [email protected]
    Password: admin123
    

In case of any issues or queries, raise your ticket at Webkul Support.