A docker container for hastebin server by Alejandro Baez.
A simple docker container for the hastebin server. Uses a customized version of the original hastebin server. Has both an updated version of highlight.js and uses Solarized Light for the theme.
If using from source, simply clone the repository and run by using the
contained docker-compose.yml
file.
git clone https://github.com/abaez/docker-hastebin.git docker-hastebin
cd docker-hastebin
docker-compose up
If using the docker container directly, then you can use the docker build.
docker run -p 7777:7777 abaez/docker-hastebin
If you want to have the docker container running automagically on your machine, then this is the place to go.
All you need to do is first copy to your systemd service directory and do a
quick daemon-reload
.
sudo cp <docker-shout source>/[email protected] /usr/lib/systemd/system
sudo systemctl daemon-reload
Finally, you can append to your systemd setup by giving the port you desire for the service to run under.
sudo systemctl enable docker-shout@9000
You don't need to declare the user, since it uses the default user of the
running service. However, if you want to be specific, you can always change
the user by replacing %u
, on line 8 with your user, in the unit file.
Lastly, unless you want the volume configuration auto mounted to /etc/shout
,
change the volume location to whatever desire.
The MIT License (MIT)
Copyright (c) 2015 Alejandro Baez
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.