mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-14 03:56:29 +00:00
Enhance the Docker section of the README
This commit is contained in:
parent
6884f05041
commit
c9e4fdf6da
1 changed files with 4 additions and 9 deletions
13
README.md
13
README.md
|
@ -117,23 +117,18 @@ 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 -p 8080:8080 nitter:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
A prebuilt Docker image is provided as well:
|
A prebuilt Docker image is provided as well: https://hub.docker.com/r/zedeus/nitter
|
||||||
```bash
|
|
||||||
docker run -v $(pwd)/nitter.conf:/src/nitter.conf -d --network host zedeus/nitter:latest
|
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:
|
Change `redisHost` from `localhost` to `nitter-redis` in `nitter.conf`, then run:
|
||||||
```bash
|
```bash
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
Note the Docker commands expect a `nitter.conf` file in the directory you run
|
|
||||||
them.
|
|
||||||
|
|
||||||
### systemd
|
### systemd
|
||||||
|
|
||||||
To run Nitter via systemd you can use this service file:
|
To run Nitter via systemd you can use this service file:
|
||||||
|
|
Loading…
Reference in a new issue