Installing with Docker
You must install Docker and Docker Compose to work with Docker containers.
Launching Mycompany using Docker Compose
-
Download the
compose.yamlfile from central server to a folder of your choice (we'll call it$FUSION_DIR$). This file contains settings for running four containers:- PostgreSQL
- Application Server
- Mycompany
- Web Client
-
The
compose.yamlsetting (optional):- If you need to change the startup settings (e.g., use a different container version or customize environment variables), edit the
compose.yamlfile according to the Docker documentation. - Application server startup options can also be set using the container's environment variables - in the environment attribute. For example, to change the server locale to Russian and set custom Xmx value, write:
environment:
- USER_SETLANGUAGE=ru
- USER_SETCOUNTRY=RU
- JAVA_OPTS=-Xmx10g
When searching for startup parameters in environment variables, Spring automatically converts them to uppercase and replaces dots with underscores. In the example above, the values of the environment variables will be substituted into the corresponding parameters:
user.setLanguageanduser.setCountry. - If you need to change the startup settings (e.g., use a different container version or customize environment variables), edit the
-
Starting the containers:
Go to the
$FUSION_DIR$folder and run the command:docker compose up -dOnce the launch is complete, the web client will be available at:
http://localhost:8080/. -
Working with project files: After the first launch, subfolders will be created in the
$FUSION_DIR$folder:docker-client-conf- client configuration.docker-db- database files.docker-server- server files.
These directories are bind-mounted into their respective containers.
- In the
docker-serverfolder put the lsFusion language modules (.lsffiles or folders with them), as well as additional resources (reports, Java files, images, CSS, JS, etc.). The server logs and thesettings.propertiesfile are also in the same folder.