These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # Hastebin
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [rlister](https://hub.docker.com/r/rlister/hastebin).
  5. #### Environment-variables
  6. Set the following variables with the -e tag.
  7. | Name | Usage | Default |
  8. | -------------- | ----------------------- | ------- |
  9. | `STORAGE_TYPE` | Type to store the datas | `file` |
  10. #### Volumes
  11. Set the following volumes with the -v tag.
  12. | Volume-Name | Container mount | Description |
  13. | ----------- | --------------- | -------------------------- |
  14. | `hastebin` | `/app/data` | storage directory for data |
  15. #### Ports
  16. Set the following ports with the -p tag.
  17. | Container Port | Recommended outside port | Protocol | Description |
  18. | -------------- | ------------------------ | -------- | ----------- |
  19. | `7777` | `7777` | TCP | WebUI |
  20. #### Rebuild
  21. ```shell
  22. #!/bin/sh
  23. docker stop hastebin
  24. docker rm hastebin
  25. docker pull rlister/hastebin:latest
  26. docker run --name hastebin \
  27. --restart unless-stopped \
  28. -p 7777:7777 \
  29. -v hastebin:/app/data \
  30. -e STORAGE_TYPE=file \
  31. -d rlister/hastebin:latest
  32. ```