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
BASHthe result should be like this:
Client:
Version: <version>
...
Engine:
Version: <version>
BASHIf 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: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
BASHdocker 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