nitter/docker-compose.yml

72 lines
1.5 KiB
YAML
Raw Normal View History

2022-01-23 15:21:59 +00:00
version: "3"
2024-02-24 13:36:22 +00:00
networks:
nitter:
2022-01-23 15:21:59 +00:00
2024-02-24 13:36:22 +00:00
services:
2024-05-19 06:32:16 +00:00
# proxy:
# hostname: nitter-proxy
# container_name: nitter-proxy
# build:
# context: ./proxy
# dockerfile: Dockerfile
# environment:
# HOST: "0.0.0.0"
# PORT: "8080"
# NITTER_BASE_URL: "http://nitter:8080"
# CONCURRENCY: "1"
# ports:
# - "8002:8080"
# networks:
# - nitter
2020-10-01 03:41:47 +00:00
nitter:
2024-02-24 13:36:22 +00:00
build: .
2022-01-23 15:21:59 +00:00
container_name: nitter
2024-02-24 13:36:22 +00:00
hostname: nitter
2020-10-01 03:41:47 +00:00
ports:
2024-02-24 13:36:22 +00:00
- "8002:8080" # Replace with "8080:8080" if you don't use a reverse proxy
2020-10-01 03:41:47 +00:00
volumes:
- ./nitter.conf:/src/nitter.conf:Z,ro
2024-02-24 13:36:22 +00:00
- ./guest_accounts.json:/src/guest_accounts.json:Z,ro
2022-01-23 15:21:59 +00:00
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
2024-02-24 13:36:22 +00:00
networks:
- nitter
2022-01-23 15:21:59 +00: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
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
2024-02-24 13:36:22 +00:00
networks:
- nitter
2022-01-23 15:21:59 +00:00
2020-10-01 03:41:47 +00:00
volumes:
2022-01-23 19:08:11 +00:00
nitter-redis: