This website uses cookies to ensure you get the best experience on our website.

Skip to content
LOGO
  • Company

    About IGNEK

    Learn about our story and our mission.

    Careers

    We're hiring!

    We always looking for talented peoples. Join our team!

    Blogs

    The latest industry news, updates and info.

    Case Studies

    Take a closer look at the projects we've delivered

    Webinar

    Watch our latest organized webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Custom Enterprise Portal Development for flawless Solutions

    Dedicated Development Team

    Expand Teams, Optimize Development with Our Expertise

    Back-end Development

    Empowering your digital presence with robust backend development expertise

    Front-end Development

    Crafting engaging user experiences through expert frontend development

    Digital Transformation

    Embrace digital transformation by modernizing process

    SaaS Development

    Transform your business with SaaS Innovative Solutions

    Technologies

    Liferay Services

    Development & Customization

    Theme

    Upgradation

    Migration

    Proof of Concept

    Performance Tunning

    Architecture

    Support & Maintenance

    E-commerce

    Expert Advice

    React Services

    Enterprise Development

    Custom Application

    Single Page Application

    Architecture

    API Integration

    Migration

    Consulting

    Maintenance & Support

    Spring Boot Services

    Web Service

    MVC Web Development

    API Integration

    Security

    Migration

    Microservices

    Support & Maintenance

    AEM Services

    Consulting Service

    Site Development

    Migration & Upgradation

    Integration

    Maintenance & Support

    Custom Solutions

    Content Management

    Team Augementation

  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Transforming industries through cutting edge SaaS solutions.

    Customer Portal : Boost Business Productivity

    Streamline operations and enhance productivity with our Customer Portal solution.

    Liferay Based Intranet Portal

    Internal portal for company communication, collaboration and resources

    Integration

    Matomo Integration with Liferay

    Integrate Matomo to enable user interactions seamlessly.

    Microsoft Teams integration with Liferay

    Integrate to enable seamless collaboration, messaging within your portal.

    Jira Integration With Liferay

    Optimizes business operations by integrating with Jira.

  • Hire Us

    Liferay

    Get expert Liferay developers for seamless portal solutions.

    React JS

    Get expert ReactJS developers for dynamic web solutions.

    Web Developer

    Get custom web solutions from IGNEK's expert developers.

    Spring Boot

    Get top-notch Spring Boot developers for your project success!

    Healthcare

    Get top Healthcare Developers for cutting-edge medical software.

    MERN Stack

    Get expert MERN developers from IGNEK for custom, innovative project solutions.

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • info@ignek.com
    • Ahmedabad, Gujarat, India – 382470
SCHEDULE CALL
  • COMPANY
    • About
    • Case Studies
    • Blogs
    • Career
    • Webinar
  • SERVICES
    • Enterprise Portal Development
    • Dedicated Development Team
    • Back-end Development
    • Front-end Development
    • Digital Transformation
    • SaaS Development
  • SOLUTION
    • Customer Portal:  Boost Business Productivity
    • SaaS : Software as a Service
    • Liferay Based Employee Intranet Portal
  • TECHNOLOGY
    • Liferay Services
      • Liferay Development and Customization
      • Liferay Theme Development Service
      • Liferay DXP 7.4 Upgrade
      • Liferay Migration
      • Liferay Proof Of Concept
      • Liferay Performance Tuning
      • Liferay Architecture Design Service
      • Liferay Support And Maintenance Service
      • Liferay Ecommerce Development
      • Liferay Expert Advice
    • ReactJS Services
      • ReactJS Enterprise Application Development
      • ReactJS Custom Application Development
      • ReactJS Single Page Application Development (SPA)
      • ReactJS Applications Architecture
      • ReactJS API Integration
      • ReactJS Migration
      • ReactJS Consulting
      • ReactJS Maintenance and Support
    • Spring Boot Services
      • Spring Boot Web Development Service
      • Spring MVC Web Development
      • Spring Boot API Integration Service
      • Spring Boot Security
      • Spring Boot Migration Service
      • Spring Boot Microservices
      • Spring Boot Support & Maintenance Service
    • AEM Development Services
      • AEM Consulting Services
      • AEM Site Development
      • AEM Migration & Upgradation
      • AEM Integration Services
      • AEM Maintenance & Support
      • AEM Content Management
      • Custom AEM Solutions
      • AEM Team Augmentation
  • INTEGRATION
  • HIRE US
    • Hire Liferay Developer
    • Hire ReactJS Developer
    • Hire Spring Boot Developer
    • Hire Healthcare Developer
    • Hire Web Developer
    • Hire MERN Stack Developer
  • CONTACT US
  • Company

    About IGNEK

    Careers

    We're hiring!

    Blogs

    Case Studies

    Webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Dedicated Development Team

    Back-end Development

    Front-end Development

    Digital Transformation

    SaaS Development

    Technologies

    Liferay Liferay Services
    • Development & Customization
    • Theme
    • Upgradation
    • Migration
    • Proof of Concept
    • Performance Tuning
    • Architecture
    • Support & Maintenance
    • E-commerce
    • Expert Advice
    React React Services
    • Enterprise Development
    • Custom Application
    • Single Page Application
    • Architecture
    • API Integration
    • Migration
    • Consulting
    • Maintenance & Support
    Spring Boot Spring Boot Services
    • Web Service
    • MVC Web Development
    • API Integration
    • Security
    • Migration
    • Microservices
    • Support & Maintenance
    AEM AEM Services
    • Consulting Service
    • Site Development
    • Migration & Upgradation
    • Integration
    • Maintenance & Support
    • Custom Solutions
    • Content Management
    • Team Augmentation
  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Customer Portal : Boost Business Productivity

    Liferay Based Intranet Portal

    Integration

    Matomo Integration with Liferay

    Microsoft Teams integration with Liferay

    Jira Integration With Liferay

  • Hire Us

    Liferay

    React JS

    Web Developer

    Spring Boot

    Healthcare

    MERN Stack

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • IGNEK
    • Ahmedabad, Gujarat, India – 382470
  • SCHEDULE CALL

Liferay With Docker

  • Liferay
  • December 3, 2023

Share On :

Introduction:

Liferay utilizes a default database to store all its data. However, when the need arises to integrate a custom database, there are multiple ways to achieve this with Liferay. One popular method for incorporating a MySQL database is through Docker.

Prerequisites

> JDK 11

> Liferay 7.4

> Docker

Setup Mysql Image For Docker

1)Checking Docker:

                   Checking the docker version by entering “docker –version”

    Docker version check command
    2)Pulling Mysql Image:
      Downloading MySQL container image

      docker run -p 6603:3306 –name my-mysql -e MYSQL_ROOT_PASSWORD=root -d mysql/mysql-server:5.7

      Let’s break down the command:

      docker run:  This is the basic command to run a Docker container. 

      -p 6603:3306:  This option maps port 6603 on the host machine to port 3306 on the container. 

      Port 3306 is the default port for MySQL, and by using this option, you are making the MySQL service inside the container accessible on the host machine at port 6603. 

      –name my-mysql:  This option assigns the name “my-mysql” to the running container. Naming containers can make it easier to manage and reference them.

      -e MYSQL_ROOT_PASSWORD=root:  This sets the environment variable MYSQL_ROOT_PASSWORD to “root”. This is specifying the root password for the MySQL server inside the container. In this case, it’s set to “root”. 

      -d:  This option runs the container in the background (detached mode). 

      mysql/mysql-server:5.7:  This is the name and tag of the Docker image to be used for creating the container. In this case, it’s pulling the MySQL Server image version 5.7 from the official Docker Hub repository (repository: mysql, image: mysql-server, tag: 5.7).

      3)Checking Image:

          docker ps -a

        Listing Docker containers

        4)Executing Bash Shell:  

        docker exec -it image-name /bin/bash

        Docker Bash Shell Execution Command

        5)Access mysql: 

           mysql -u root -p -A

        Access MySQL via command line

        6)Access User & Host Column:

         select user,host from mysql.user;

        Access MySQL user and host

        7)Setting host to ‘%’:

         update mysql.user set host=’%’ where user=’root’;

        Set host in MySQL

        when we execute this query, it will update the mysql.user table, setting the host column to ‘%’ for the user with the username ‘root’. This effectively allows the user ‘root’ to connect from any host.

        8)Reloading Privileges: 

             flush privileges;

        Refreshing Privileges

        FLUSH: This command is used to reset or refresh various system parameters in MySQL.

        In this case, FLUSH PRIVILEGES is specifically used to reload the privileges from the grant tables.

        Setup Liferay Database

        To set up the Lifeary database firstly we need to go to the Liferay home folder.

        Now create the portal-ext.properties in it.

        After creating the properties file, do these entries in the file.

        Setup Liferay database using portal ext file

        Change the underlined entries with our port name, database name, MySQL username, and password, respectively.

        Our setup is finished, We are ready to start the Liferay.

        Liferay setup is finished

        Explore Our Services

        Discover how we can help your business thrive, whether you’re running a small startup, an SME, or a large enterprise. We’re here to understand your unique needs and goals, offering the expertise and resources to support your journey to success.

        Stay informed about our Liferay services and updates by subscribing to our newsletter—just fill in the details below to subscribe.

        Loading
        Loading...

        Related Blogs

        October 22, 2019
        CRUD Operations in Liferay Portlet with custom entity
        CRUD Operations in Liferay Portlet with custom entity
        November 5, 2020
        Context Contributor in Liferay 7.2 Cover Image
        Context Contributor in Liferay 7.2
        July 23, 2020
        Portlet Preferences in Liferay 7.2 Cover Image
        Portlet Preferences in Liferay 7.2
        Loading...

        Featured Projects Portfolios

        November 27, 2023
        Government Job Platform User-Friendly, Secure and Scalable
        Government Job Platform : User-Friendly, Secure, and Scalable
        October 6, 2023
        Incident Management Portal _ Simplifying Reporting, Tracking and Collaboration
        Incident Management Portal : Simplifying Reporting, Tracking, and Collaboration
        October 4, 2023
        Invoice-Based Lending Finance Portal _ Fast, Secure, Reliable
        Invoice-Based Lending Finance Portal : Fast, Secure, Reliable

        Digital Solutions for Your Business with IGNEK

        4.9

        5.0

        5.0

        5.0

        LOGO

        Making the world a better place through constructing elegant hierarchies

        COMPANY

        • About
        • Career
        • Case Study
        • Blogs

        SERVICES

        • Enterprise Portal Development
        • Dedicated Development Team
        • Back-end Development
        • Front-end Development
        • Digital Transformation
        • SaaS Development

        HIRE US

        • Liferay
        • Spring Boot
        • ReactJS
        • Healthcare
        • MERN Stack
        • AEM

        CONTACT

        • info@ignek.com
        • info@ignek.com
        SALES
        • sales@ignek.com
        • (+91) 635 157 6580
        CAREER
        • hr@ignek.com
        • (+91) 932 849 5160
        • E 910-912, Ganesh Glory 11, Jagatpur Road, SG Highway, Ahmedabad, Gujarat - 382470

        © 2018-2025 IGNEK, Inc. All rights reserved

        Linkedin Facebook X-twitter Instagram