diff --git a/Dockerfile b/Dockerfile index ae685ff..5240b94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,10 @@ RUN apt install -y ca-certificates RUN useradd -d /src -u 1001 nitter WORKDIR /srv +RUN chown nitter:nitter -R /srv COPY --from=build /src/nitter ./ COPY --from=build /src/public ./public USER nitter -CMD ./nitter +CMD ./srv/nitter diff --git a/compose.example.yml b/compose.example.yml index de9da7f..7077fa7 100644 --- a/compose.example.yml +++ b/compose.example.yml @@ -8,7 +8,7 @@ services: - ./nitter.conf:/srv/nitter.conf:Z,ro - ./accounts.jsonl:/srv/accounts.jsonl:Z,ro depends_on: - - nitter-redis + - nitter_redis restart: unless-stopped user: 998:998 security_opt: diff --git a/nitter.example.conf b/nitter.example.conf index f4c0611..32e2290 100644 --- a/nitter.example.conf +++ b/nitter.example.conf @@ -11,7 +11,7 @@ accountsFile = "./accounts.jsonl" [cache] listMinutes = 240 # how long to cache list info (not the tweets, so keep it high) rssMinutes = 10 # how long to cache rss queries -redisHost = "localhost" # Change to "nitter-redis" if using docker-compose +redisHost = "localhost" # Change to "nitter_redis" if using docker-compose redisPort = 6379 redisPassword = "" redisConnections = 20 # minimum open connections in pool