Skip to main content

Installing with Docker

info

You must install Docker and Docker Compose to work with Docker containers.

Launching Mycompany using Docker Compose

  • Download the compose.yaml file 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.yaml setting (optional):

    • If you need to change the startup settings (e.g., use a different container version or customize environment variables), edit the compose.yaml file 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.setLanguage and user.setCountry.

  • Starting the containers:

    Go to the $FUSION_DIR$ folder and run the command:

     docker compose up -d

    Once 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-server folder put the lsFusion language modules (.lsf files or folders with them), as well as additional resources (reports, Java files, images, CSS, JS, etc.). The server logs and the settings.properties file are also in the same folder.