Format readme
This commit is contained in:
parent
5cceca4e93
commit
74c13b372d
1 changed files with 8 additions and 4 deletions
10
README.md
10
README.md
|
@ -67,9 +67,10 @@ Twitter account.
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
* libpcre
|
|
||||||
* libsass
|
- libpcre
|
||||||
* redis
|
- libsass
|
||||||
|
- redis
|
||||||
|
|
||||||
To compile Nitter you need a Nim installation, see
|
To compile Nitter you need a Nim installation, see
|
||||||
[nim-lang.org](https://nim-lang.org/install.html) for details. It is possible to
|
[nim-lang.org](https://nim-lang.org/install.html) for details. It is possible to
|
||||||
|
@ -115,18 +116,21 @@ before you can run the container. See below for how to also run Redis using
|
||||||
Docker.
|
Docker.
|
||||||
|
|
||||||
To build and run Nitter in Docker:
|
To build and run Nitter in Docker:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker build -t nitter:latest .
|
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 --network host nitter:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
A prebuilt Docker image is provided as well:
|
A prebuilt Docker image is provided as well:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -v $(pwd)/nitter.conf:/src/nitter.conf -d --network host 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 `nitter-redis` in `nitter.conf`, then run:
|
Change `redisHost` from `localhost` to `nitter-redis` in `nitter.conf`, then run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue