This commit is contained in:
myve 2024-08-10 09:07:11 +00:00
commit e650d80b1e
58 changed files with 1747 additions and 0 deletions

9
nitter/.env Normal file
View file

@ -0,0 +1,9 @@
# Environment file for docker-compose.yaml
# Generate new passwords with:
# openssl rand -hex 32
# Fill in registry
REGISTRY=
# Nitter
NITTER_PORT=

View file

@ -0,0 +1,52 @@
services:
# https://github.com/PrivacyDevel/nitter/blob/master/docker-compose.yml
# https://github.com/zedeus/nitter/issues/1155#issuecomment-1917167072
nitter:
image: ${REGISTRY}/nitter
container_name: nitter
restart: unless-stopped
ports:
- ${NITTER_PORT:-8080}:8080
healthcheck:
test: wget -nv --tries=1 --spider http://127.0.0.1:8080/Jack/status/20 || exit 1
interval: 30s
timeout: 5s
retries: 2
volumes:
- ./nitter.conf:/src/nitter.conf:Z,ro
- ./guest_accounts.json:/src/guest_accounts.json
depends_on:
- nitter-redis
user: 1000:984
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
networks:
- nitter
nitter-redis:
image: ${REGISTRY}/valkey
container_name: nitter-redis
command: redis-server --save 60 1 --loglevel warning
volumes:
- ./redis:/data
restart: unless-stopped
healthcheck:
test: redis-cli ping
interval: 30s
timeout: 5s
retries: 2
user: 1000:984
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
networks:
- nitter
networks:
nitter:
external: false