Giter Club home page Giter Club logo

docker-liferay's Introduction

Introduction

Liferay Portal is the world's leading enterprise open source portal framework, offering integrated web publishing and content management, an enterprise service bus and service-oriented architecture, and compatibility with all major IT infrastructure.

This image aims to help you run Liferay Portal Community Edition in a Docker container.

Quick Start

Make sure your Docker host has sufficiently free RAM (at least 4 GB), then run the Liferay image:

docker run --name='liferay' -d -p 8080:8080 rsippl/liferay

NOTE: Please allow a few minutes for the server to start. If you want to make sure that everything went fine, watch the log:

docker exec -it liferay /bin/bash
tail -f /opt/liferay/logs/liferay.2016-04-26.log
tail -f /opt/liferay/tomcat/logs/catalina.2016-04-26.log

Go to http://localhost:8080 (replace localhost with the IP address of your Docker host), then log in. Use the following to log in as the default administrative user:

Configuration

Database

By default, Liferay is configured to use Hypersonic as its database. Hypersonic is an embedded database which can be useful for demonstration and development purposes, but it shouldn't be used in production.

If you use this image in production, you'll probably want to store data separately in an external location. You can use the DB_... environment variables to configure Liferay's database.

If DB_KIND is hypersonic (or not set), then an embedded Hypersonic database will be used. By setting DB_KIND to mysql, you can use an external MySQL server, e.g. one running in a Docker container:

docker run --name 'mysql' -d \
    -e MYSQL_ROOT_PASSWORD=secret \
    -e MYSQL_DATABASE=lportal \
    -e MYSQL_USER=liferay \
    -e MYSQL_PASSWORD=secret \
    mysql:5.6.30 \
    --character-set-server=utf8 \
    --collation-server=utf8_general_ci

Then start the Liferay container:

docker run --name 'liferay' -d \
    -p 8080:8080 \
    -e DB_KIND=mysql \
    -e DB_HOST=liferaydb \
    -e DB_USERNAME=liferay \
    -e DB_PASSWORD=secret \
    --link mysql:liferaydb \
    rsippl/liferay

Options

Below is a list of the currently available parameters that can be set using environment variables.

  • DB_KIND: hypersonic or mysql; default = hypersonic
  • DB_USERNAME: username to use when connecting to the database
  • DB_PASSWORD: password to use when connecting to the database
  • DB_NAME: name of the database to connect to; default = lportal
  • DB_HOST: host of the database server; default = localhost
  • DB_CONN_PARAMS: database connection parameters; for MySQL, default = characterEncoding=UTF-8&dontTrackOpenResources=true&holdResultsOpenOverStatementClose=true&useFastDateParsing=false&useUnicode=true
  • SETUP_WIZARD_ENABLED: starts Liferay's Setup Wizard on first run

Build from Source

The source code is available at https://github.com/rsippl/docker-liferay.git.

git clone https://github.com/rsippl/docker-liferay.git
cd docker-liferay
docker build --tag="$USER/liferay" .

References

docker-liferay's People

Contributors

rsippl avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.