Skip to content

Docker

This document describes how you can use Docker Compose to try out the new PxWeb 2.0 with your excisting database. The reason we need Compose is that the new PxWeb access the database through PxWebApi, so we need to run alt least two containers.

Prerequisites

Database

Follow instructions for one of the databases

PX-file database

  • Obtain a copy of a PX-file database from a PxWeb 2023 (or older) installation

  • Copy the files to this folder docker/pxwebapi/Database

    If you don't have a copy of your database yet, we can continues with a small sample database

    cd docker/pxwebapi/Database
    unzip tinydatabase.zip
    

    And return to the root folder for the next step

    cd ../../../
    

CNMM database

  • It is possible to connect to a CNMM database from Docker, subject to your office's local security policies.

    These are the files you need to change. A detailed description is in the customization chapter.

    docker/pxwebapi/appsettings.json
    docker/pxwebapi/SqlDb.config
    

Start Docker

  • Start PxWebApi and PxWeb

    docker compose up
    

During (every) startup in this demo, the Menu.xml (PX-file database) and searchindex _INDEX folder will be regenerated. This can take some time on lager databases. Since we are still in beta, please do not run this on your production servers.