Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Installation

...

on Docker

The Connect Server can be operated under Docker. On Windows, only the "modern" Docker variant (Docker with WSL2) is supported. For operation under DockerIn Docker-based environments, we recommend using the delivery as a portable .NET assembly, since the platform-specific variants of the Connect Server are not explicitly tested for operation under Dockerthis scenario.

As a basis for the creation of the image you need a Linux distribution and the current version of the ASP.NET Core 6.0 runtime environment. A corresponding image is provided by Microsoft, for example, but it can also be but you may also use a custom image created according to your own requirements.

...

Code Block
docker build -t connect .

...

.

Creating a Docker Container

...

Code Block
docker run -d -v c:\connect\data:/connect/data -p 8000:80 --dns 192.168.1.110 --name myconnect connect

In this example, the web server inside the Docker image uses the default configuration and is accessible via HTTP on port 80. If required, an HTTPS configuration on port 443 can be added. Externally, any port can be used for the container.

To avoid keeping the persistent data inside the container, this example creates an external directory named "c:\connect\data". In this directory, a JSON file named "appsettings.json" can be created that contains the environment-specific configuration settings.

...