2022-01-23 16:21:59 +01:00
|
|
|
version: "3"
|
|
|
|
|
2020-10-01 05:41:47 +02:00
|
|
|
services:
|
2022-01-23 16:21:59 +01:00
|
|
|
|
2020-10-01 05:41:47 +02:00
|
|
|
nitter:
|
|
|
|
image: zedeus/nitter:latest
|
2022-01-23 16:21:59 +01:00
|
|
|
container_name: nitter
|
2020-10-01 05:41:47 +02:00
|
|
|
ports:
|
2022-01-23 16:21:59 +01:00
|
|
|
- "127.0.0.1:8080:8080" # Replace with "8080:8080" if you don't use a reverse proxy
|
2020-10-01 05:41:47 +02:00
|
|
|
volumes:
|
2023-03-06 23:40:01 +01:00
|
|
|
- ./nitter.conf:/src/nitter.conf:Z,ro
|
2022-01-23 16:21:59 +01:00
|
|
|
depends_on:
|
|
|
|
- nitter-redis
|
|
|
|
restart: unless-stopped
|
2022-03-04 16:42:27 +01:00
|
|
|
healthcheck:
|
|
|
|
test: wget -nv --tries=1 --spider http://127.0.0.1:8080/Jack/status/20 || exit 1
|
|
|
|
interval: 30s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 2
|
2023-03-28 16:20:07 +02:00
|
|
|
user: "998:998"
|
|
|
|
read_only: true
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
2022-01-23 16:21:59 +01:00
|
|
|
|
|
|
|
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
|
2022-03-04 16:42:27 +01:00
|
|
|
healthcheck:
|
|
|
|
test: redis-cli ping
|
|
|
|
interval: 30s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 2
|
2023-03-28 16:20:07 +02:00
|
|
|
user: "999:1000"
|
|
|
|
read_only: true
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
2022-01-23 16:21:59 +01:00
|
|
|
|
2020-10-01 05:41:47 +02:00
|
|
|
volumes:
|
2022-01-23 20:08:11 +01:00
|
|
|
nitter-redis:
|