Deploying WDS API Server in Docker
Run WDS quickly in a single Docker container using the Solidstack service — ideal for local trials and small tests.
The API Server listens on port 2807 and is available at http://localhost:2807.
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
the result should be like this:
Client:
Version: <version>
...
Engine:
Version: <version>
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:
- Windows - for Windows OS
- Linux - for Linux-based OS including MacOS
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:8080 ^
-e EXTERNAL_IP_ADDRESS_CONFIGS="intranet" ^
-e JOB_TYPES="intranet" ^
-e DB_CONNECTION_STRING="mongodb+srv://<user>:<password>@<host>/Solidstack?appName=<cluster>&readPreference=secondary" ^
webdatasource/solidstack:v2.0.3
docker rm -f wds > /dev/null && docker run --name wds \
-p 2807:8080 \
-e EXTERNAL_IP_ADDRESS_CONFIGS='intranet' \
-e JOB_TYPES='intranet' \
-e DB_CONNECTION_STRING='mongodb+srv://<user>:<password>@<host>/Solidstack?appName=<cluster>&readPreference=secondary' \
webdatasource/solidstack:v2.0.3