From c9e4fdf6da6bbf210848dc880b434b9476a5c6f0 Mon Sep 17 00:00:00 2001 From: TheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com> Date: Thu, 31 Mar 2022 21:41:17 +0000 Subject: [PATCH] Enhance the Docker section of the README --- README.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 460ce21..88e408e 100644 --- a/README.md +++ b/README.md @@ -117,23 +117,18 @@ Docker. 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 nitter:latest +docker run -v $(pwd)/nitter.conf:/src/nitter.conf -d -p 8080:8080 nitter:latest ``` -A prebuilt Docker image is provided as well: -```bash -docker run -v $(pwd)/nitter.conf:/src/nitter.conf -d --network host zedeus/nitter:latest -``` +A prebuilt Docker image is provided as well: https://hub.docker.com/r/zedeus/nitter + +Either clone the repository, or download both the `docker-compose.yml` file and the `nitter.conf` file to the same folder -Using docker-compose to run both Nitter and Redis as different containers: Change `redisHost` from `localhost` to `nitter-redis` in `nitter.conf`, then run: ```bash docker-compose up -d ``` -Note the Docker commands expect a `nitter.conf` file in the directory you run -them. - ### systemd To run Nitter via systemd you can use this service file: