Setting a custom certificate

Tonic provides a certificate for https traffic but you can also use your own certificate.

Tonic can also use a user provided certificate assuming it is in the PFX format. In order to use your own certificate you must make several changes tot he docker-compose.yml file. The changes must be applied to both the tonic_web_server and tonic_worker containers.

Environmental Variable

You must add a new environmental variable called TONIC_PFX_PASSWORD which contains the certificate password.


Volume Mount

The Tonic containers are given access to the certificate via volume mounting whereby the certificate is placed on the host machine then shared to the containers as a volume. The certificate must be mapped to /certificates on the container

- /my-host-path:/certificates