Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (31 loc) · 1010 Bytes

local-development.md

File metadata and controls

40 lines (31 loc) · 1010 Bytes

Necessary configuration

  1. Add liferay/configs/local/osgi/configs/com.liferay.portal.search.elasticsearch6.configuration.ElasticsearchConfiguration.config with these contents:
operationMode="REMOTE"
indexNamePrefix="liferay-"
transportAddresses="search:9300"
clusterName="liferay_cluster"
  1. Modify liferay/configs/local/portal-ext.properties with these contents:
include-and-override=portal-developer.properties

#
# MySQL
#
jdbc.default.driverClassName=com.mysql.cj.jdbc.Driver
jdbc.default.url=jdbc:mysql://database/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=dxpcloud
jdbc.default.password=dxpcloud
web.server.http.port=8080
web.server.protocol=http

Local Development

  1. Run the following command to build Liferay with its modules:
cd liferay;
./gradlew clean createDockerfile deploy;
  1. Navigate to the root folder and run docker-compose up.
  2. To stop the services run docker-compose down --rmi local.