Dockerized version of @seejohnrun' haste-server pastebin clone written in Node.
- Make sure you've installed all requirements
- Clone this repository:
git clone https://github.com/frdmn/docker-hastebin- Create a copy of the sample
.envfile and adjust it at will:
cp .env.sample .env- Spin up the containers:
docker-compose up -dYou can make use of the following environment variables / configurations:
| Environment variable | Default value | Description |
|---|---|---|
HASTEBIN_KEY_LENGTH |
10 |
The length of the keys to user |
HASTEBIN_MAX_LENGTH |
400000 |
Maximum length of a paste |
HASTEBIN_STATIC_MAX_AGE |
86400 |
Max age for static assets |
HASTEBIN_RECOMPRESS_STATIC_ASSETS |
true |
Whether or not to compile static js assets |
HASTEBIN_LOGGING_LEVEL |
verbose |
Logging level |
HASTEBIN_LOGGING_TYPE |
Console |
Logging type |
HASTEBIN_LOGGING_COLORIZE |
false |
Colorize logging output |
HASTEBIN_KEY_GENERATOR_TYPE |
phonetic |
Key generator options |
$ docker-compose up -d
Creating hastebin_hastebin_1 ... done$ docker-compose stop
Stopping hastebin_hastebin_1 ... done$ docker-compose stop
$ docker-compose pull
$ docker-compose rm
$ docker-compose up -d$ docker-compose logs -f- Fork it
- Create your feature branch:
git checkout -b feature/my-new-feature- Commit your changes:
git commit -am 'Add some feature'- Push to the branch:
git push origin feature/my-new-feature- Submit a pull request
- Docker (incl.
docker-compose)
1.1.0