Sign inSign up

ajanvier/polr

By ajanvier

Updated over 4 years ago

Unofficial Docker image for Polr. https://polrproject.org

Image
29

1M+

ajanvier/polr repository overview

Polr on Alpine Linux with Docker

Docker Image Size Docker Pulls Docker Latest Version

A Docker image for Polr.

Usage

Start the Docker container:

docker run -p 8080:8080 \
    -e "DB_HOST=localhost" \
    -e "DB_DATABASE=polr" \
    -e "DB_USERNAME=polr" \
    -e "DB_PASSWORD=password" \
    -e "APP_ADDRESS=example.com" \
    -e "ADMIN_USERNAME=admin" \
    -e "ADMIN_PASSWORD=admin" \
    ajanvier/polr

Or use the example docker-compose.yml.

SSL not included, I made it originally to work with nginx-proxy.

Environment variables

NameDescription
DB_HOST(required) Host of the MySQL server
DB_PORTPort of the MySQL server (default: 3306)
DB_DATABASEName of the MySQL database (default: polr)
DB_USERNAMEName of the MySQL user (default: polr)
DB_PASSWORD(required) Password of the MySQL user
APP_NAMEYour app's name (shown on interface) (default: My Polr)
APP_PROTOCOLProtocol to access your app. (default: https://)
APP_ADDRESS(required) Your app's external address (ex: example.com)
ADMIN_USERNAME(required) Username of the admin user
ADMIN_PASSWORD(required) Password of the admin user
ADMIN_EMAILEmail of the admin user
SETTING_PUBLIC_INTERFACESet to true to show an interface to logged off users
If false, set the SETTING_INDEX_REDIRECT
You may login by heading to /login if the public interface is off
(default: true)
SETTING_SHORTEN_PERMISSIONSet to true to require users to be logged in before shortening URLs
(default: false)
SETTING_INDEX_REDIRECTYou must set SETTING_INDEX_REDIRECT if SETTING_PUBLIC_INTERFACE is false
Polr will redirect logged off users to this URL
SETTING_REDIRECT_404Set to true if you wish to redirect 404s to SETTING_INDEX_REDIRECT
Polr will redirect logged off users to this URL
SETTING_PASSWORD_RECOVSet to true to enable password recovery (default: false)
SETTING_AUTO_APISet to true to generate API keys for each user on registration (default: false)
SETTING_ANON_APISet to true to allow anonymous API access (default: false)
SETTING_ANON_API_QUOTASet the anonymous API quota per IP
SETTING_PSEUDORANDOM_ENDINGSet to true to use pseudorandom strings rather than using a counter by default (default: false)
SETTING_ADV_ANALYTICSSet to true to record advanced analytics (default: false)
SETTING_RESTRICT_EMAIL_DOMAINSet to true to restrict registration to a specific email domain (default: false)
SETTING_ALLOWED_EMAIL_DOMAINSA comma-separated list of permitted email domains
POLR_ALLOW_ACCT_CREATIONSet to true to allow signups, false to disable (default: false)
POLR_ACCT_ACTIVATIONSet to true to require activation by email (default: false)
POLR_ACCT_CREATION_RECAPTCHASet to true to require reCAPTCHAs on sign up pages
If this setting is enabled, you must also provide your reCAPTCHA keys in POLR_RECAPTCHA_SITE_KEY and POLR_RECAPTCHA_SECRET_KEY
(default: false)
POLR_BASE32 or 62 (default: 62)
POLR_RECAPTCHA_SITE_KEYreCAPTCHA site key
POLR_RECAPTCHA_SECRET_KEYreCAPTCHA secret key
Set each to blank to disable mail
MAIL_HOSTHostname of the mail server
MAIL_PORTPort of the mail server
MAIL_USERNAMEUser name on the mail server
MAIL_PASSWORDUser password
MAIL_FROM_ADDRESS"From" address
MAIL_FROM_NAME"From" name

Tag summary

Content type

Image

Digest

Size

103.1 MB

Last updated

over 4 years ago

docker pull ajanvier/polr