mirror of https://github.com/tiyn/wiki
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.
44 lines
1.1 KiB
44 lines
1.1 KiB
5 years ago
|
# Hastebin
|
||
5 years ago
|
|
||
|
## Setup Server
|
||
|
|
||
|
### Docker
|
||
|
|
||
5 years ago
|
The official container and documentation was made by [rlister](https://hub.docker.com/r/rlister/hastebin).
|
||
|
|
||
5 years ago
|
#### Environment-variables
|
||
5 years ago
|
Set the following variables with the -e tag.
|
||
|
|
||
|
| Name | Usage | Default |
|
||
|
| ------------ | ----------------------- | ------- |
|
||
|
| STORAGE_TYPE | Type to store the datas | file |
|
||
|
|
||
5 years ago
|
#### Volumes
|
||
5 years ago
|
Set the following volumes with the -v tag.
|
||
|
|
||
|
| Volume-Name | Container mount | Description |
|
||
|
| ---------------- | --------------- | -------------------------- |
|
||
|
| hastebin | /app/data | storage directory for data |
|
||
|
|
||
5 years ago
|
#### Ports
|
||
5 years ago
|
Set the following ports with the -p tag.
|
||
|
|
||
|
| Container Port | Recommended outside port | Protocol | Description |
|
||
|
| -------------- | ------------------------ | -------- | ----------- |
|
||
|
| 7777 | 7777 | TCP | WebUI |
|
||
5 years ago
|
|
||
|
#### Rebuild
|
||
|
|
||
|
```
|
||
|
#!/bin/sh
|
||
|
docker stop hastebin
|
||
|
docker rm hastebin
|
||
|
docker pull rlister/hastebin:latest
|
||
|
docker run --name hastebin \
|
||
|
--restart unless-stopped \
|
||
|
-p 7777:7777 \
|
||
|
-v hastebin:/app/data \
|
||
|
-e STORAGE_TYPE=file \
|
||
|
-d rlister/hastebin:latest
|
||
|
```
|