Since we want to have clustered Liferay environment we need two or more Liferay instances. Process of building the environment Liferay containers It's really crucial as all types of data storage methods in Docker have their pros and cons. If you plan to create production environment based on the instructions below then you should understand data storage in Docker first! I believe the best place for that is Docker documentation. This approach gives you an overview of different methods you can use but there's a catch. Also for the MySQL I don't save the data anywhere actually. Docker storage - mounting, volumesĪfter publishing the original post I thought about one more thing - in below instructions I use Docker volumes for holding some data (elasticsearch and Liferay's documents repository) and I mount some other (deploy directories) and I also copy some (configs, jars, portal-ext.properties) in Dockerfile. ![]() Or you can check the GIT repository instead if you prefer to see the end result from the beginning. If you plan to create your environment while reading then you can also create a new directory with files/directories like on the screen below (the files can be empty at this stage):Īnd in the deploy directory you can create two empty directories called "portal-node-1" and "portal-node-2": I won't go through the basics of containers or docker so it would be good if you knew the basics but I guess anyone can follow. To start you will need Docker installed on your local machine (or server or any other place where you want to start your cluster environment). Instead I will just show you the basic configuration for database/ElasticSearch and load balancer. If you need those then it's quite simple to add that to the basic configuration I will show you and of course you will find tons of resources on these topics. Important thing - I will focus on simplicity and on Liferay configuration so I will not create database/Elasticsearch/loadbalancer cluster. I encourage you to go through the steps and learn something new though! Of course if you want to you can go to the final version of code right away - it's on my git. I will try to show you step by step how you can build the environment yourself so you can understand the process better. In my example environment I will use docker but the steps are similiar if you're installing two (or more) instances on one or many servers. Hello! In this article I would like to show you how to create clustered Liferay environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |