Sign inSign up

blakerain/cement

By blakerain

Updated 19 days ago

A very light-weight pastebin.

Image
Web servers
0

2.1K

blakerain/cement repository overview

Cement is a very simple pastebin-like web application written in Rust.

By default, this container will run Cement on port 3000. You only need to specify the location of a libSQL (SQLite) database: a file path or remote URL and authentication token. The remote URL and token can be passed to the container via the DB_REMOTE and DB_TOKEN environment variables.

docker run -e DB_REMOTE=http://... -e DB_TOKEN=... -d blakerain/cement

Alternatively you may wish to specify the path to a database file using the DB environment variable.

docker volume create cement_data
docker run -d \
  -e DB=/data/cement.db \
  -v cement_data:/data
  blakerain/cement

The following table describes the environment variables and their meaning:

Environment VariableDescription
RUST_LOGThe level of logging (default INFO).
HOSTHost to bind to (default 0.0.0.0).
PORTPort to listen on (default: 3000)
DBPath to database file
DB_REMOTEURL for remote database
DB_TOKENAuthentication token for remote DB

For more information, see the repository.

Tag summary

Content type

Image

Digest

sha256:89992583d

Size

7.4 MB

Last updated

19 days ago

docker pull blakerain/cement