Sign inSign up

esutwo/privacyidea

By esutwo

Updated about 1 year ago

PrivacyIdea Docker Image

Image
1

10K+

esutwo/privacyidea repository overview

PrivacyIdea Docker Image

GitHub Link

The image packages PrivacyIdea since there is no official image to handle the packaging.

Usage

The majority of the configuration is done via environment variables and config files stored within the container at /pi. A sub-directory within that folder can be mounted to store the files necessary for persistance.

docker build -t privacyidea:latest .
docker run --rm -it -v $(pwd)/data:/pi/mnt \
           -e SECRET_KEY='bigsecret' \
           -e PI_PEPPER='dontusethis' \
           -p 8000:8000 \
           privacyidea:latest
Create an admin user
docker exec -it privacyidea /opt/privacyidea/bin/pi-manage admin bob -p bobspwd

Environment Vars

VarDefaultDescription
DEBUGFalseEnables debug logs & test server
SECRET_KEYrandomUsed to encrypt values. Should be unique
PI_PEPPERrandomUsed to encrypt admin passwords. Should be unique
DATABASE_URIsqlite:////pi/mnt/data.sqliteUsed to connect to db. See here for more
DB_CHECKStarts a while loop waiting for the database to come online when set to True
PI_LOGCONFIG/pi/logging.ymlLog config location
PI_ENCFILE/pi/mnt/enckeyThis is used to encrypt the token data and token passwords. File will be generated at specified location if one does not exist
PI_AUDIT_KEY_PRIVATE/pi/mnt/audit-private.pemThis is used to sign the audit log. File will be generated at specified location if one does not exist
PII_AUDIT_KEY_PUBLIC/pi/mnt/audit-public.pemThis is used to sign the audit log. File will be generated at specified location if one does not exist
PRIVACYIDEA_CONFIGFILE/pi/pi.cfgConfig file location

Tag summary

Content type

Image

Digest

sha256:81d872a1b

Size

175.1 MB

Last updated

about 1 year ago

docker pull esutwo/privacyidea:3.11