From b0acb8387ff14ce2f1d0fd98d5cbbce13159dce9 Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 13 Aug 2024 23:26:16 +0000 Subject: [PATCH] add nitter --- nuc/nitter/docker-compose.yml | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 nuc/nitter/docker-compose.yml diff --git a/nuc/nitter/docker-compose.yml b/nuc/nitter/docker-compose.yml new file mode 100644 index 0000000..2e672b1 --- /dev/null +++ b/nuc/nitter/docker-compose.yml @@ -0,0 +1,49 @@ +services: + + nitter: + image: zedeus/nitter:latest + container_name: nitter + volumes: + - ./nitter.conf:/src/nitter.conf:Z,ro + depends_on: + - nitter-redis + restart: unless-stopped + healthcheck: + test: wget -nv --tries=1 --spider http://127.0.0.1:8080/Jack/status/20 || exit 1 + interval: 30s + timeout: 5s + retries: 2 + user: "998:998" + read_only: true + security_opt: + - no-new-privileges:true + cap_drop: + - ALL + networks: + - web + + nitter-redis: + image: redis:6-alpine + container_name: nitter-redis + command: redis-server --save 60 1 --loglevel warning + volumes: + - nitter-redis:/data + restart: unless-stopped + healthcheck: + test: redis-cli ping + interval: 30s + timeout: 5s + retries: 2 + user: "999:1000" + read_only: true + security_opt: + - no-new-privileges:true + cap_drop: + - ALL + +networks: + web: + external: true + +volumes: + nitter-redis: \ No newline at end of file