Deploying WDS API Server in Docker

This is the easiest way to run a Web Data Source API Server instance - in a single docker container.
To achieve that there is a special service solidstack.

IMPORTANT! This deployment has no docs service, so please use the documentation on the official webdatasource website

IMPORTANT! This deployment has no playground service, so the examples from this documentation will not work.

Docker

To make use of this deployment type docker is needed to be installed locally. Use the following command to check if it’s already installed:

docker version
BASH

the result should be like this:

Client:
 Version: <version>
...
 Engine:
  Version: <version>
BASH

If the result shows that docker is not installed please review installation documentation on its official website

Run Solidstack in Docker

There are two types of scripts to run solidstack service in docker:

NOTE! Replace the value of the DB_CONNECTION_STRING environment variable with a real connection string to a MongoDB database.

docker rm -f wds > NUL && docker run --name wds ^
    -p 2807:8081 ^
    -e EXTERNAL_IP_ADDRESS_CONFIGS="intranet" ^
    -e JOBS_TYPES="intranet" ^
    -e DB_CONNECTION_STRING="mongodb+srv://<user>:<password>@<host>/Solidstack?appName=<cluster>&readPreference=secondary" ^
    webdatasource/solidstack:v1.0.1
BASH
docker rm -f wds > /dev/null && docker run --name wds \
    -p 2807:8081 \
    -e EXTERNAL_IP_ADDRESS_CONFIGS='intranet' \
    -e JOBS_TYPES='intranet' \
    -e DB_CONNECTION_STRING='mongodb+srv://<user>:<password>@<host>/Solidstack?appName=<cluster>&readPreference=secondary' \
    webdatasource/solidstack:v1.0.1
BASH

Please rotate your device to landscape mode

This documentation is specifically designed with a wider layout to provide a better reading experience for code examples, tables, and diagrams.
Rotating your device horizontally ensures you can see everything clearly without excessive scrolling or resizing.

Return to Web Data Source Home