Enhance the Docker section of the README

This commit is contained in:
TheFrenchGhosty 2022-03-31 21:41:17 +00:00 committed by GitHub
parent 6884f05041
commit c9e4fdf6da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: