Skip to main content
Version: 2026 R2

WEBCON containerization

Containerization is an alternative to the standard installation of WEBCON components. It allows the Portal, Workflow Service, and Search Server to run in independent Docker containers, which significantly simplifies installing the system in cloud services.

This article describes a step-by-step installation for version 2026 R1 and later, in which the Portal and Workflow Service run in separate containers.

Enterprise subscription required

Containerization of WEBCON components is available only in the subscription model, in the Enterprise plan. The Standard plan of the subscription model and licenses in the perpetual model do not include containerization. The plans are described in the Licenses article.

Requirements​

  • A WEBCON subscription in the Enterprise plan. Starting each additional container consumes another license. Shutting a container down correctly releases its license. License usage can be checked in the License usage report in Designer Studio.
  • An external authentication provider, e.g. Microsoft Entra ID or OpenID Connect. Windows authentication does not work correctly inside containers.
  • A containerization platform that supports Docker images. This article uses Docker Desktop, installed on the computer on which all installation steps are performed. WEBCON can be installed on other platforms in the same way, e.g. Azure Container Instances or Azure Kubernetes Service.
  • A Microsoft SQL Server instance accessible from the computer running the containers.

Bootstrapper image and startup modes​

Starting with version 2026 R1, the Portal and Workflow Service are started from a single webconbps/bootstrapper image. The role of the container is determined solely by the STARTUP_MODE environment variable:

  • portal – the container runs as WEBCON Portal; the modulesOrchestration module is disabled.
  • service – the container runs as WEBCON Workflow Service; the designerDesk, designerStudio, and portal modules are disabled.

When the container starts, the entrypoint script reads the STARTUP_MODE value, sets the appropriate flags in the module configuration files, and starts the WebCon.WorkFlow.Bootstrapper.exe process. There is no need to edit the configuration files inside the image manually.

Search Server (Solr) is a separate image because it is built on Linux.

Image location​

The images are published in the Docker Hub registry:

A list of available versions is located on the Tags tab of each repository.

Image tag​

The bootstrapper image tag consists of the WEBCON version number and the name of the base operating system image:

webconbps/bootstrapper:<version>-windowsservercore-ltsc2022

The examples use version 2026.2.2.121:

webconbps/bootstrapper:2026.2.2.121-windowsservercore-ltsc2022

The bootstrapper image is built on mcr.microsoft.com/dotnet/aspnet:10.0-windowsservercore-ltsc2022. It requires Docker Desktop to run in Windows container mode with process isolation (--isolation=process). The Search Server image is a Linux image, so it is created in Linux container mode.

tip

The version of the Search Server and bootstrapper images must match the WEBCON version used to create the databases.

Installation plan​

When WEBCON is installed in containers, the installer is used only to create the databases. The remaining system components are downloaded as Docker images and started in containers. Before the installation, plan the environment: the system components, their network addresses, and the communication between them.

The diagram shows the installation described in this article, together with the addresses of the individual services. In the example, nbdemo is the name of the computer running Docker Desktop, and nbdemo.webcon.pl is its fully qualified domain name.

Architecture diagram of WEBCON running in Docker containers

The installation consists of the following steps:

  1. Creating the Search Server container and initializing the Solr search indexes.
  2. Creating the SQL databases with the WEBCON installer.
  3. Creating the Docker network and the environment variable files.
  4. Creating the Workflow Service container.
  5. Creating the Portal container.
  6. Creating the reverse proxy container.
  7. Starting Designer Studio and activating the licenses.

Data storage​

WEBCON uses two types of databases:

  • relational Microsoft SQL Server databases – store all data entered by users as well as configuration data; located outside the containers,
  • Solr search indexes handled by Search Server – fed with a large part of the data from the SQL databases; stored on a Docker volume.

Creating the Search Server container​

The Search Server image is built on the official Solr platform image for Linux.

  1. Switch Docker Desktop to Linux container mode. To do this, right-click the program icon in the system tray and select Switch to Linux containers….

    Docker Desktop menu with the option to switch to Linux containers

  2. In the warning window, click Switch.

    Confirmation window for switching to Linux containers

  3. Create the solr-bps volume for Solr data. A container is an ephemeral object, and a Docker volume prevents data loss when the container is shut down. In the CMD console, enter the command:

    docker volume create solr-bps
  4. Check that the volume is visible on the Volumes tab in Docker Desktop.

    The solr-bps volume on the Volumes tab in Docker Desktop

  5. Start the container with the command:

    docker run -d --name bps_search -p 8983:8983 -e SOLR_HEAP=2g --mount source=solr-bps,target=/var/solr --add-host host.docker.internal:host-gateway --entrypoint /bin/sh webconbps/search:2026.2.2.121 -c "/opt/bps-solr/scripts/run-precreate-cores.sh"

    Parameters:

    • -d – runs the container in the background,
    • --name bps_search – the container name,
    • -p 8983:8983 – maps host port 8983 to container port 8983 (the default Solr port),
    • -e SOLR_HEAP=2g – the memory limit for the Solr process; other Solr environment variables can be passed in the same way,
    • --mount source=solr-bps,target=/var/solr – maps the volume to the container directory that stores the search indexes, permission configuration, and log files,
    • --add-host host.docker.internal:host-gateway – allows the container to reach services on the host computer under the name host.docker.internal,
    • webconbps/search:2026.2.2.121 – the container image in the version matching the WEBCON version,
    • --entrypoint /bin/sh with the argument -c "/opt/bps-solr/scripts/run-precreate-cores.sh" – the script that initializes the Solr index structures. The script is required the first time the container starts. It can always be passed – on subsequent starts it detects the existing indexes and skips creating them.
  6. Check that the container is running on the Containers tab.

    The running bps_search container on the Containers tab in Docker Desktop

Search Server is available at http://nbdemo:8983/solr.

Creating the SQL databases​

  1. Download the WEBCON installer in the version matching the image version (2026.2.2.121 in the example).

  2. Run the installer, accept the license, and select the New WEBCON installation mode.

  3. Select the Standalone environment type.

  4. In the System verification step, select Next, and in the Component selection step, select Skip. All components are started from Docker images, and the installer is used only to create and configure the databases.

    The Component selection step in the WEBCON installer with the Skip button highlighted

  5. In the Database creation parameters, Configuration database creation, Process database creation, and Attachment database creation steps, proceed as in a standard WEBCON installation. It is recommended to copy the configuration database name – it is needed when starting the Portal and Workflow Service containers.

  6. In the Portal address configuration step, enter the address at which the Portal will be available according to the infrastructure plan. In the example, the Portal is available through the reverse proxy at https://nbdemo.webcon.pl:48440.

  7. In the Administrative account step, enter the password of the administrative user. The password is needed to log in to the Portal and Designer Studio to complete the configuration.

  8. In the Search Server address step, in the Connect to field, select Default Search Server installation in a container, enter the address of the Search Server container (http://nbdemo:8983/solr/ in the example), and provide the passwords for the solr and WEBCON_BPS users. In this step, the installer changes the default Search Server user passwords and registers the Search Server instance in the configuration database.

    The Search Server address step in the WEBCON installer

caution

The solr user is the administrator of the Solr instance. Its password is not stored anywhere else and cannot be recovered.

During the Search Server address step, the Search Server container must be running – the installer connects to it to change the passwords and verify the container contents.

Docker network and environment variable files​

The Portal, Workflow Service, and reverse proxy containers communicate with each other by host name, so they must run on a shared Docker network. Before starting the containers, create the network with the command:

docker network create webcon_net

On this network, the containers are given the following host names:

  • Portal – webcon,
  • Workflow Service – webcon_service,
  • reverse proxy – caddy_proxy.

Container configuration is passed in environment variable files. The variables correspond to the settings defined in the appsettings.json file in a standard WEBCON installation. Prepare three files in the current folder.

user.env​

A shared file with database connection details, used by both Workflow Service and the Portal. Replace <SERVER>, <DBNAME>, <USER>, and <PASS> with your own values. For <DBNAME>, enter the configuration database name copied while creating the databases.

ConnectionStrings__ConfigDb=Server=<SERVER>;Database=<DBNAME>;User ID=<USER>;Password=<PASS>;Trust Server Certificate=True;
ConnectionStrings__LogsDb=Server=<SERVER>;Database=<DBNAME>;User ID=<USER>;Password=<PASS>;Trust Server Certificate=True;
Serilog__MinimumLevel__Default='Information'

The container is not part of a domain, so the database connection requires an SQL user name and password instead of domain login.

service_env.env​

Workflow Service container variables:

STARTUP_MODE=service
ExternalWebService__Port=58002
ExternalWebService__LicenseServicePort=8002
Kestrel__Endpoints__Http__Url=http://*:48442
modulesOrchestration__webconWorkflowServicePort=48443
modulesOrchestration__serviceModuleRunnerPort=48450
DOTNET_gcServer=1
DOTNET_GCDynamicAdaptationMode=1
ASPNETCORE_FORWARDEDHEADERS_ENABLED=True
Service__Config__InitServiceRoles__BasicFeatures=true
Service__Config__InitServiceRoles__LicenseService=true

portal_env.env​

Portal container variables:

STARTUP_MODE=portal
Kestrel__Endpoints__Http__Url=http://*:48441
DOTNET_gcServer=1
DOTNET_GCDynamicAdaptationMode=1
DataProtection__ApplicationName='bps_container'
ASPNETCORE_FORWARDEDHEADERS_ENABLED=true

Key variables​

  • STARTUP_MODE – the role the container starts in (portal or service),
  • ConnectionStrings__ConfigDb, ConnectionStrings__LogsDb – connection parameters for the configuration database and the logs database,
  • Kestrel__Endpoints__Http__Url – the address and port of the HTTP server in the container (48441 for the Portal, 48442 for Workflow Service),
  • modulesOrchestration__webconWorkflowServicePort – the port of the workflow service exposed by Workflow Service,
  • modulesOrchestration__serviceModuleRunnerPort – the port used for communication with the modules started by Workflow Service,
  • ExternalWebService__Port, ExternalWebService__LicenseServicePort – the ports of the external service and the license service,
  • ExternalWebService__Host – the host name under which Workflow Service is visible to the other components; passed directly in the docker run command,
  • DataProtection__ApplicationName – the application name for the ASP.NET Data Protection mechanism; all Portal containers of an installation must have the same value,
  • ASPNETCORE_FORWARDEDHEADERS_ENABLED – handling of headers passed by the reverse proxy,
  • Serilog__MinimumLevel__Default – the logging level.
tip

If the containers need to resolve host names from the corporate network (e.g. the SQL server name), add the --dns <DNS server address> parameter to the docker run commands.

Creating the Workflow Service container​

The Workflow Service and Portal images are built on Windows Server Core images.

  1. Switch Docker Desktop to Windows container mode (the Switch to Windows containers… option in the program icon menu in the system tray).

  2. Make sure the service_env.env and user.env files are in the current folder.

  3. Start the container with the command:

    docker run -d --name webcon_service_container --hostname webcon_service --network webcon_net --isolation=process -p 48442:48442 -p 48443:48443 -p 48450:48450 -e ExternalWebService__Host=webcon_service -e ServiceName=webcon_service -e Hostname=webcon_service --env-file service_env.env --env-file user.env webconbps/bootstrapper:2026.2.2.121-windowsservercore-ltsc2022

    Parameters:

    • -d – runs the container in the background,
    • --name webcon_service_container – the container name,
    • --hostname webcon_service – the container host name; Workflow Service is visible to the Portal under this name on the webcon_net network,
    • --network webcon_net – connects the container to the created network,
    • --isolation=process – process isolation required for Windows Server Core containers,
    • -p 48442:48442 -p 48443:48443 -p 48450:48450 – maps host ports to container ports; the port numbers must match the values in the service_env.env file,
    • -e ExternalWebService__Host=webcon_service, -e ServiceName=webcon_service, -e Hostname=webcon_service – the host name and service name registered in the configuration database; they must match the value of the --hostname parameter,
    • --env-file service_env.env --env-file user.env – the container environment variable files,
    • webconbps/bootstrapper:2026.2.2.121-windowsservercore-ltsc2022 – the container image in the version matching the WEBCON version.
  4. Verify the startup by opening http://localhost:48442/health. The startup logs, including the selected STARTUP_MODE, can be displayed with the command:

    docker logs webcon_service_container
info

In this configuration, ports 58002 (ExternalWebService__Port) and 8002 (ExternalWebService__LicenseServicePort) are not published on the host – on the webcon_net network, the Portal communicates with Workflow Service directly. If clients outside the container network need to use these services, add the -p 58002:58002 -p 8002:8002 parameters to the docker run command.

Creating the Portal container​

The Portal container must be started after the Workflow Service container.

  1. Make sure the portal_env.env and user.env files are in the current folder. The user.env file is the same one used by Workflow Service.

  2. Create a volume for the HotFolder directory, in which the Portal processes files submitted by users. The volume prevents data loss when the container is shut down.

    docker volume create hotfolder
  3. Start the container with the command:

    docker run -d --name webcon_portal_container --hostname webcon --network webcon_net --isolation=process -p 48441:48441 -v hotfolder:C:/hotfolder -e ServiceName=webcon -e Hostname=webcon --env-file portal_env.env --env-file user.env webconbps/bootstrapper:2026.2.2.121-windowsservercore-ltsc2022

    Parameters:

    • -d – runs the container in the background,
    • --name webcon_portal_container – the container name,
    • --hostname webcon – the container host name; used in the reverse proxy configuration,
    • --network webcon_net – connects the container to the network on which Workflow Service runs,
    • --isolation=process – process isolation required for Windows Server Core containers,
    • -p 48441:48441 – maps host port 48441 to container port 48441; the port must match the value of the Kestrel__Endpoints__Http__Url variable in the portal_env.env file,
    • -v hotfolder:C:/hotfolder – maps the volume to the hotfolder directory in the container,
    • -e ServiceName=webcon -e Hostname=webcon – the host name registered in the configuration database,
    • --env-file portal_env.env --env-file user.env – the container environment variable files,
    • webconbps/bootstrapper:2026.2.2.121-windowsservercore-ltsc2022 – the same image as for Workflow Service; the container role is determined solely by the STARTUP_MODE variable.

Creating the reverse proxy container​

Running the Portal in a container often serves to scale the application easily by starting additional Portal containers. In such a configuration, the Portal container is not exposed to users directly, but through a load balancer.

In the test installation described here, this configuration is simulated by a container with a reverse proxy server. Any server with this functionality can be used – the example uses the Caddy server running on a Windows image.

  1. Create a Caddyfile configuration file with the content below. Replace the localhost address with the address of your environment. The host name and port that the reverse proxy points to must match the Portal container (--hostname webcon, port 48441).

    {
    https_port 48440
    }
    https://localhost:48440 {
    header {
    X-Content-Type-Options nosniff
    X-Frame-Options SAMEORIGIN
    -Server
    }
    reverse_proxy {
    to webcon:48441
    stream_timeout 24h
    stream_close_delay 5m
    }
    tls C:\\etc\caddy\cert.pem C:\\etc\caddy\key.pem
    }

    The stream_timeout and stream_close_delay parameters ensure correct handling of long-lived Portal connections (e.g. notifications). The X-Content-Type-Options and X-Frame-Options headers improve application security, and -Server removes the header that identifies the server.

  2. Place the cert.pem and key.pem files with a trusted certificate for the computer address in the current folder. The reverse proxy uses HTTPS, and a trusted certificate is required for the address to be trusted.

  3. Create a Dockerfile with the following content:

    FROM caddy:windowsservercore-ltsc2022
    COPY Caddyfile /etc/caddy/Caddyfile
    COPY cert.pem /etc/caddy/cert.pem
    COPY key.pem /etc/caddy/key.pem
  4. Build the Caddy image with the command:

    docker build -t caddy/reverse.proxy .
  5. Start the container with the command:

    docker run -d --name caddy_proxy --hostname caddy_proxy --network webcon_net --isolation=process -p 48440:48440 caddy/reverse.proxy

The reverse proxy container must run on the same webcon_net network as the Portal – only then is the webcon name from the Caddyfile resolved correctly.

Addresses and ports​

In the described example, the components are available at the following addresses:

  • reverse proxy (Caddy) – https://nbdemo.webcon.pl:48440/
  • Portal – http://nbdemo.webcon.pl:48441/
  • Workflow Service – http://nbdemo.webcon.pl:48442/
  • Search Server (Solr) – http://nbdemo:8983/solr

Ports used:

PortRole
48440reverse proxy (Caddy), HTTPS
48441Portal – HTTP server (Kestrel__Endpoints__Http__Url)
48442Workflow Service – HTTP server and /health address
48443Workflow Service – workflow service (modulesOrchestration__webconWorkflowServicePort)
48450Workflow Service – communication with modules (modulesOrchestration__serviceModuleRunnerPort)
58002Workflow Service – external service (ExternalWebService__Port)
8002Workflow Service – license service (ExternalWebService__LicenseServicePort)
8983Search Server (Solr)

The Portal running in a container is available at the reverse proxy address, https://nbdemo.webcon.pl:48440/ in the example.

Post-installation configuration​

The following steps complete the configuration of the WEBCON platform. They are required for every installation, not only in containers.

  1. Log in to the Portal with the administrative user password set while creating the databases.
  2. Install Designer Studio from the user menu in the Portal.
  3. Log in to Designer Studio with the administrative user password.
  4. Activate the subscription licenses in the license management window.
  5. Configure user list synchronization (e.g. with Microsoft Entra ID) and force it to run.
  6. Configure an authentication provider other than Admin access, e.g. Microsoft Entra ID.
  7. After the user list is synchronized, assign licenses to the appropriate users.
  8. Grant global permissions to the users who will manage the installation configuration.
  9. After verifying that the above settings work correctly, disable the Admin access authentication provider.