Docker
The HTTP API server of this project can be run using docker.
Building
To build the Docker image of the HTTP API server of this project run (from the root directory of this repository):
docker build -t local/now8-api .
Running
Then, to run the server execute (filling the variable values):
docker run -d --name now8-api -p 80:80 -e WEB_CONCURRENCY=4 local/now8-api
You can then access the HTTP API at http://localhost:80.
If WEB_CONCURRENCY is not set, the number of workers will be two times
the number of CPU cores/threads.
The environment variables from tiangolo/uvicorn-gunicorn-fastapi are supported.
Last update:
2021-09-18