Sign inSign up

moonbuggy2000/dpaste

By moonbuggy2000

Updated over 5 years ago

dpaste pastebin running in an Alpine container with Nginx and uWSGI

Image
0

2.5K

moonbuggy2000/dpaste repository overview

Docker dpaste

dpaste pastebin running in an Alpine container with Nginx and uWSGI

Usage

docker run --name dpaste -d -p 8080:8080 moonbuggy2000/dpaste:latest
Environment variables

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 postgres
  • DB_HOST - database server hostname or IP
  • DB_NAME - database name
  • DB_USER - database user name
  • DB_PASSWORD - database user password
  • EXPIRE_DEFAULT - default expiry time of snippets in seconds (defaults to 1 month)
  • SECRET_KEY - secret key for signing and hashing
  • ADMIN_NAME - name of the administrator
  • ADMIN_EMAIL - email address of the administrator
  • DEBUG - accepts True or False (defaults to False)
  • PUID - user ID to run as
  • PGID - group ID to run as
  • NGINX_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.

EXPIRE_DEFAULT

Accepted values for this variable are:

  • 3600 - 1 hour
  • 86400 - 1 day
  • 604800 - 1 week
  • 2678400 - 1 month (default)
Persisting Data

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

Tag summary

Content type

Image

Digest

Size

33.5 MB

Last updated

over 5 years ago

docker pull moonbuggy2000/dpaste