In the docker directory of the project repository is a Dockerfile that can be used to launch the patch server as a container.
Clone the project repository to your computer. Create the Docker image with:
% cd /path/to/PatchServer
% docker build --tag patchserver:latest -f docker/Dockerfile .Run a container with the following command:
% docker run -v /<patchserver-data>:/var/lib/patchserver -p 5000:5000 patchserverℹ️ Use the
-doption to run the container in the background.
ℹ️ The
-v /<patchserver-data>:/var/lib/patchserveroption is to mount a local directory to the path in the running container where the persistent data for the patch server is stored (i.e. the database).
⚠️ If you do not attach a volume to/var/lib/patchserverthe database will be erased when the container is stopped and removed.
You will be able to access the application using the IP address of the host (your computer's IP address when running Docker locally) at port 5000.
When running Patch Server behind a reverse proxy for TLS (e.g. Nginx, Apache) redirects may send a client from https to http. If your proxy is configured to pass the X-Forwarded-For and X-Forwarded-Proto headers you can enable proxy on Patch Server via environment variable.
ENABLE_PROXY_SUPPORT=Trueℹ️ Use the
-eoption to pass env vars to thedocker runcommand.
ℹ️ See Proxy Setups in the Deploying Flask documentation for more details.
The application, by default, runs 2 worker per available CPU plus 1 (a 2 CPU host will produce 5 workers) with 1 thread per worker.
Coming soon.