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 Variable | Description |
|---|---|
RUST_LOG | The level of logging (default INFO). |
HOST | Host to bind to (default 0.0.0.0). |
PORT | Port to listen on (default: 3000) |
DB | Path to database file |
DB_REMOTE | URL for remote database |
DB_TOKEN | Authentication token for remote DB |
For more information, see the repository.
Content type
Image
Digest
sha256:89992583d…
Size
7.4 MB
Last updated
19 days ago
docker pull blakerain/cement