Skip to content

Run with Docker

Cédric Clerget edited this page Feb 8, 2021 · 1 revision

Run with Docker

Docker images for Simple Public Key Server are available on Github packages.

As the server validate public PGP keys based on email address, it requires to pass a valid SMTP configuration in order to send validation instruction to users submitting keys:

docker run                                           \
       --env SPKS_PUBLIC_URL=http://spks.example.com \
       --env SPKS_MAIL_SMTP_SERVER=smtp.example.com  \
       --env SPKS_MAIL_SMTP_PORT=587                 \
       --env SPKS_MAIL_SMTP_USERNAME=username        \
       --env SPKS_MAIL_SMTP_PASSWORD=password        \
       --env SPKS_MAIL_IDENTITY_VERIFICATION=true    \
       --env SPKS_ADMIN_EMAIL=admin@example.com      \
       --env SPKS_MAIL_IDENTITY_DOMAINS=example.com  \
       --env SPKS_DBCONFIG_DIR=/db                   \
       -v /volume/spks-db:/db                        \
       -p 80:11371                                   \
       --cap-drop=ALL                                \
       ghcr.io/ctrliq/spks:v0.1.0

Here you could find all configuration environment variables.

Clone this wiki locally