Public | Automated Build

Last pushed: 3 days ago
Short Description
Dockerfiles for Liferay Portal
Full Description

About this repo

This repository contains some nonofficial pet-projects on how to use Liferay with Docker.

Available Liferay Releases

  • Liferay 7.0.3 GA4
  • Liferay 7.0.2 GA3
  • Liferay 7.0.1 GA2
  • Liferay 7.0.0 GA1
  • Liferay 7.0.0 Beta8
  • Liferay 7.0.0 Beta7
  • Liferay 6.2.0 GA6

Customized Environment support

There are some different image configurations supported under this repository, depending on if you want to use Liferay Portal with a different database or application server.

If you are using any of the CE supported databases (MySQL or PostgreSQL), please use the right Git branches on this repository to check out the docker-compose files for each database, which will provide an additional Docker container with the supported database, linked to the container running Liferay Portal. Besides, this file will change and describe the usage for each branch.

Supported Databases

These are the supported Database Management System (DBMS):

  • HSQL
  • MySQL
  • PostgreSQL

Supported Application Servers

These are the supported App servers:

  • Tomcat

Branch name convention

The convention for branch names, using - as separator, is:

  • Liferay major version: 7
  • Liferay community edition: ce
  • Liferay release: ga4
  • Application server: tomcat
  • DBMS: hsql

So, if you are using Liferay 7 GA4 with MySQL or PostgreSQL, you should use the 7-ce-ga4-tomcat-mysql or 7-ce-ga4-tomcat-postgres branches, respectively.

The git branches are named using the same convention, i.e.:


These docker images are free software ("Licensed Software"); you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

These docker images are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; including but not limited to, the implied warranty of MERCHANTABILITY, NONINFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Docker Pull Command

Comments (4)
3 months ago

You're welcome bardiavipin :)

No, the liferay-portal:7-ce-ga3-tomcat-mysql tag can be used within a docker-compose file, the same way I explain here:

I'd add more information here in the documentation.

Thanks for for feedback!

3 months ago

Thanks for response,

I was using tag:liferay-portal:7-ce-ga3-tomcat-mysql to use mysql with liferay assuming it already include mysql in it.

5 months ago

Hi bardiavipin, the image is a simple Liferay image with an embedded HSQL database. To connect to MySQL, please take a look into the github repo, the MySQL branches:

By the way, I've just released an out-of-the-box image including MySQL in the same container, for testing purpose:

5 months ago

How to connect to mysql?
I am not able to find mysql installation and connection details.

Thanks in advance!