forked from zedeus/nitter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.49 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "3"
services:
nitter:
build:
context: .
ports:
- "8081:8081"
volumes:
# should map this in PaaS
- nitter-data:/nitter-data
# optional mapping for twitter-credentials.json file
# - ./twitter-credentials.json:/nitter-data/twitter-credentials.json
# - ./nitter.conf:/src/nitter.conf
environment:
# shuold be included for custom paths
- NITTER_ACCOUNTS_FILE=/nitter-data/guest_accounts.json
# optional twitter-credentials.json custom path
# - TWITTER_CREDENTIALS_FILE=/nitter-data/twitter-credentials.json
# optional instance custmizations from env
- INSTANCE_TITLE=Custom title
- INSTANCE_THEME=Twitter Dark
- INSTANCE_INFINITE_SCROLL=1
- INSTANCE_BASE64_MEDIA=1
- INSTANCE_HOSTNAME=localhost:8081
- INSTANCE_RSS_MINUTES=60
# - USE_CUSTOM_CONF=1
# - INSTANCE_HTTPS=1
# optional for setups without redis and/or ng1inx
# - DISABLE_REDIS=1
# - DISABLE_NGINX=1
# optional for setups without redis, e.g. external redis connection info
# - REDIS_HOST=nitter-redis
# - REDIS_PORT=6379
# - REDIS_PASSWORD=
# optional debugging flags
- DEBUG=1
- RESET_NITTER_ACCOUNTS_FILE=1
- INSTANCE_ENABLE_DEBUG=1
env_file:
# should require from env
# TWITTER_USERNAME
# TWITTER_PASSWORD
# INSTANCE_RSS_PASSWORD
# INSTANCE_WEB_USERNAME
# INSTANCE_WEB_PASSWORD
- .env
volumes:
nitter-data: