dpaste pastebin running in an Alpine container with Nginx and uWSGI
2.5K
dpaste pastebin running in an Alpine container with Nginx and uWSGI
docker run --name dpaste -d -p 8080:8080 moonbuggy2000/dpaste:latest
Environment variables can be specified with the -e flag or in docker-compose.yml. Available environment variables are:
DB_TYPE - accepts sqlite (default), mysql or postgresDB_HOST - database server hostname or IPDB_NAME - database nameDB_USER - database user nameDB_PASSWORD - database user passwordEXPIRE_DEFAULT - default expiry time of snippets in seconds (defaults to 1 month)SECRET_KEY - secret key for signing and hashingADMIN_NAME - name of the administratorADMIN_EMAIL - email address of the administratorDEBUG - accepts True or False (defaults to False)PUID - user ID to run asPGID - group ID to run asNGINX_LOG_ALL - enable logging of HTTP 200 and 300 responses (accepts: true, false default: false)UWSGI_LOG - enable logging from uWSGI (accepts: true, false default: false)None of these environment varaibles are required, although SECRET_KEY is a good idea.
Accepted values for this variable are:
3600 - 1 hour86400 - 1 day604800 - 1 week2678400 - 1 month (default)If you wish to manually configure settings you can create a volume at /app/dpaste/settings/.
If you're using the SQLite database you'll want to persist the database file by mounting either the folder or the file at /app/db/database.sqlite3.
GitHub: https://github.com/moonbuggy/docker-dpaste
Docker Hub: https://hub.docker.com/r/moonbuggy2000/dpaste
Content type
Image
Digest
Size
33.5 MB
Last updated
over 5 years ago
docker pull moonbuggy2000/dpaste