1
0
mirror of https://github.com/rlister/dockerfiles.git synced 2025-12-13 01:36:20 +00:00
Files
rlister-dockerfiles/hastebin/README.md
Mario Loria dbf1c5b9a7 readme add
2016-10-24 14:31:42 -04:00

764 B

Hastebin

Hastebin is a simple pastebin, which can be installed on a protected network.

This dockerfile builds an image that can be configured using environment variables. This is done by writing config.js at runtime from interpolated variables in app.sh.

See app.sh for variable names.

Example use

STORAGE_TYPE is set to file by default so you can quickly be up and running!

Writing pastes to a mounted local volume:

docker run --name hastebin -d -p 7777:7777 -e STORAGE_TYPE=file -e /data:/app/data rlister/hastebin

Writing pastes to redis:

docker run --name redis -d redis
docker run --name hastebin -d -p 7777:7777 --link redis:redis -e STORAGE_HOST=redis rlister/hastebin