Run multiple PDF Service instances with one Nginx in Docker
Nginx is a web server that can be used as a load balancer to run multiple PDF Service instances in Docker. DigiCert provides you with a ready-to-use Docker Compose file and its associated files.
Select the number of PDF Service instances and then execute the Docker Compose file. No additional configuration is required.
Use this option to create several hashes (maximum 200) and then pass them on at once in Document Trust Manager API calls as described "1 - Signing multiple hashes" in Postman with one SAD (Signature Activation Data).
Prerequisites
Linux host
Docker installed (Readme-client.md is located the PDF Service folder)
PDF Service 2.0 image
To run multiple PDF Service instances with one Nginx in Docker:
Download and save Nginx and PDF Service Docker configuration files.
Copy the files to your Linux host where the PDF Service is running.
Open a terminal and change to the directory where nginx-conf and the docker-compose.yml file are located.
To check if PDF Service is running, run command:
docker ps
To stop PDF Service, run command:
docker container stop <container name>
Open the docker-compose.yml file with an editor such as Nano or vi. For example:
nano docker-compose.yml
Enter the desired number of instances (replicas).
Press Ctrl+X keys to close the file.
Press Y key to confirm saving the file.
Press Enter key to confirm the file name.
To execute the Docker Compose file, run command:
docker compose -f docker-compose.yml up
To display all running containers, run command:
docker ps
Follow this link to access the PDF Service in your browser.