Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added documentation about using a custom CA with Docker #268

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,24 @@ to the credentials. Note that PVE `supports Let's Encrypt`_ out ouf the box. In
many cases setting up trusted certificates is the better option than operating
with self-signed certs.

**Note on using Docker with a custom CA:**

When operating PVE with certificates signed by a custom Certificate Authority
(or a public CA certificate that is not yet included in the Docker image), and
the easiest way is to import the certificate into the local trust store of the
host (see this `SE answer`_ for Debian/Ubuntu) then bind mount the host's
ca-certificates.crt file, and set the ``REQUESTS_CA_BUNDLE`` enviroment variable
in Docker to use the CA bundle (otherwise the exporter will ignore it).

Docker Compose snippet:

.. code:: yaml

volumes:
- '/etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro'
environment:
- REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt

Proxmox VE Configuration
------------------------

Expand Down