Add docker instructions to readme

This commit is contained in:
Zed 2019-10-18 00:10:40 +02:00
parent 1877b4fd83
commit 089cea0042
3 changed files with 14 additions and 7 deletions

View File

@ -1,7 +1,8 @@
FROM nimlang/nim:alpine as nim FROM nimlang/nim:alpine as nim
MAINTAINER setenforce@protonmail.com MAINTAINER setenforce@protonmail.com
EXPOSE 8080 EXPOSE 8080
ENV HOSTNAME nitter.net ARG HOSTNAME
ENV HOSTNAME ${HOSTNAME:-nitter.net}
COPY . /src/nitter COPY . /src/nitter
WORKDIR /src/nitter WORKDIR /src/nitter

View File

@ -71,6 +71,12 @@ Set your port and page title in `nitter.conf`, then run Nitter by executing `./n
You should run Nitter behind a reverse proxy such as You should run Nitter behind a reverse proxy such as
[Nginx](https://github.com/zedeus/nitter/wiki/Nginx) or Apache for better security. [Nginx](https://github.com/zedeus/nitter/wiki/Nginx) or Apache for better security.
To build and run Nitter in Docker:
```bash
docker build -t nitter:latest --build-arg HOSTNAME=nitter.net .
docker run -d -p 8080:8080 nitter:latest
```
To run Nitter via systemd you can use this service file: To run Nitter via systemd you can use this service file:
```bash ```bash

View File

@ -43,11 +43,6 @@ card = [
'', '',
'www.tesla.com', True], 'www.tesla.com', True],
['mobile_test/status/490378953744318464',
'Nantasket Beach',
'Rocks on the beach.',
'500px.com', True],
['voidtarget/status/1094632512926605312', ['voidtarget/status/1094632512926605312',
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too)', 'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too)',
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too) - obsplugin.nim', 'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too) - obsplugin.nim',
@ -73,7 +68,12 @@ no_thumb = [
['brent_p/status/1088857328680488961', ['brent_p/status/1088857328680488961',
'Hts Nim Sugar', 'Hts Nim Sugar',
'hts-nim is a library that allows one to use htslib via the nim programming language. Nim is a garbage-collected language that compiles to C and often has similar performance. I have become very...', 'hts-nim is a library that allows one to use htslib via the nim programming language. Nim is a garbage-collected language that compiles to C and often has similar performance. I have become very...',
'brentp.github.io'] 'brentp.github.io'],
['mobile_test/status/490378953744318464',
'Nantasket Beach',
'Rocks on the beach.',
'500px.com']
] ]
playable = [ playable = [