|
7 tahun lalu | |
---|---|---|
.. | ||
Dockerfile | 7 tahun lalu | |
README.md | 7 tahun lalu | |
about.md | 7 tahun lalu | |
haste.py | 7 tahun lalu | |
hastebin.png | 7 tahun lalu | |
run.sh | 7 tahun lalu |
Simple, lightweight and secure Hastebin container based on Alpine Linux
hastebin is the prettiest, easiest to use pastebin ever made. It is used to share text and can be used from the command line with the hastebin-client. You can find the server repo here.
Propose a lightweight and secure container that is easy to setup.
Build this image:
docker build -t hastebin .
Now, you have two choices:
1) Using internal file storage
This is the easyiest to set up. You just need to run:
docker run -d --name hastebin hastebin
2) Using redis as storage
This will allow you to backup your data.
You need redis to store the data of this hastebin container:
docker run -d --name hastebin-redis redis:alpine
You can check the ip address of the hastebin-redis container with:
docker network inspect bridge
Then you just have to start the container, linking it to the hastebin-redis instance:
docker run -d -e STORAGE_TYPE=redis -e REDIS_HOST=172.17.0.2 --name hastebin --init hastebin
I've made a python 3 script to send/get and encrypt/decrypt snippets.
You can find it here.