1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-10-15 20:31:19 +02:00

docker-images: change names of rebuild and docker-compose headers

This commit is contained in:
TiynGER
2021-05-21 15:57:07 +02:00
parent 8d9e5c87c5
commit d28ce26e58
40 changed files with 82 additions and 91 deletions

View File

@@ -2,9 +2,38 @@
The official container and documentation was made by [zedeus](https://github.com/zedeus/nitter).
## Config file
## Volumes
Create a configuration file `nitter.conf` in a folder of your choice.
Set the following volumes with the -v tag.
| Outside mount/volume name | Container mount | Description |
| ------------------------- | --------------- | ------------------------- |
| `nitter` | `/data` | storage for all of nitter |
## Ports
Set the following ports with the -p tag.
| Container Port | Recommended outside port | Protocol | Description |
| -------------- | ------------------------ | -------- | ----------- |
| `8080` | `8080` | TCP | WebUI |
## rebuild.sh
```shell
#!/bin/sh
docker stop nitter
docker rm nitter
docker pull zedeus/nitter:latest
docker run --name nitter \
--restart unless-stopped \
-v <path to nitter conf folder>/nitter.conf:/src/nitter.conf \
-v nitter:/data \
-p 8080:8080 \
-d zedeus/nitter:latest
```
## nitter.conf
```txt
[Unit]
@@ -29,34 +58,3 @@ RestartSec=15
[Install]
WantedBy=multi-user.target
```
## Volumes
Set the following volumes with the -v tag.
| Outside mount/volume name | Container mount | Description |
| ------------------------- | --------------- | ------------------------- |
| `nitter` | `/data` | storage for all of nitter |
## Ports
Set the following ports with the -p tag.
| Container Port | Recommended outside port | Protocol | Description |
| -------------- | ------------------------ | -------- | ----------- |
| `8080` | `8080` | TCP | WebUI |
## Rebuild
```shell
#!/bin/sh
docker stop nitter
docker rm nitter
docker pull zedeus/nitter:latest
docker run --name nitter \
--restart unless-stopped \
-v <path to nitter conf folder>/nitter.conf:/src/nitter.conf \
-v nitter:/data \
-p 8080:8080 \
-d zedeus/nitter:latest
```