Fix requested changes.

Also, remove published ports since docker ignores it when using the host network mode.
This commit is contained in:
FireMaskterK
2021-12-26 23:06:57 +00:00
committed by FireMasterK
parent bacc1cbd0d
commit 1d738c52c6
2 changed files with 5 additions and 5 deletions

View File

@@ -100,20 +100,20 @@ using the systemd service below. You should run Nitter behind a reverse proxy
such as [Nginx](https://github.com/zedeus/nitter/wiki/Nginx) or Apache for
security reasons.
To run nitter with docker, you will need to install redis before you run these commands.
To run Nitter with docker, you will need to install Redis before you run these commands.
To build and run Nitter in Docker:
```bash
docker build -t nitter:latest .
docker run -v $(pwd)/nitter.conf:/src/nitter.conf -d --network host -p 8080:8080 nitter:latest
docker run -v $(pwd)/nitter.conf:/src/nitter.conf -d --network host nitter:latest
```
A prebuilt Docker image is provided as well:
```bash
docker run -v $(pwd)/nitter.conf:/src/nitter.conf -d --network host -p 8080:8080 zedeus/nitter:latest
docker run -v $(pwd)/nitter.conf:/src/nitter.conf -d --network host zedeus/nitter:latest
```
Using docker-compose to run both nitter and redis as different containers:
Using docker-compose to run both Nitter and Redis as different containers:
Change redisHost from `localhost` to `redis` in `nitter.conf` and then run:
```bash
docker-compose up -d