From 1d738c52c69e9a9afb09d6f7d7bdad62d0fdb01b Mon Sep 17 00:00:00 2001 From: FireMaskterK <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 26 Dec 2021 23:06:57 +0000 Subject: [PATCH] Fix requested changes. Also, remove published ports since docker ignores it when using the host network mode. --- README.md | 8 ++++---- nitter.conf | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ea28d80..b6fa670 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/nitter.conf b/nitter.conf index f15d07a..d4f7361 100644 --- a/nitter.conf +++ b/nitter.conf @@ -10,7 +10,7 @@ hostname = "nitter.net" [Cache] listMinutes = 240 # how long to cache list info (not the tweets, so keep it high) rssMinutes = 10 # how long to cache rss queries -redisHost = "localhost" # Change to redis if using docker-compose +redisHost = "localhost" # Change to "redis" if using docker-compose redisPort = 6379 redisConnections = 20 # connection pool size redisMaxConnections = 30