0
0
opnxng-deploy-playbook/templates/compose/nitter.yaml.j2

56 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-11-06 10:39:27 +08:00
# {{ ansible_managed }}
version: '3.7'
services:
nitter:
image: git.opnxng.com/opnxng/nitter:latest
container_name: nitter
security_opt:
- no-new-privileges
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
ports:
- 8883:8080
volumes:
- {{ docker_dir }}/nitter/nitter.conf:/src/nitter.conf:ro
- {{ docker_dir }}/nitter/about.html:/src/public/md/about.html:ro
- {{ docker_dir }}/nitter/about.md:/src/public/md/about.md:ro
- {{ docker_dir }}/nitter/guest_accounts.jsonl:/src/guest_accounts.jsonl
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
networks:
- IPv4
nitter-redis:
image: redis:alpine
container_name: nitter-redis
command: redis-server --save 60 1 --loglevel warning
security_opt:
- no-new-privileges
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
volumes:
- {{ docker_dir }}/nitter/nitter-redis:/data
restart: unless-stopped
healthcheck:
test: redis-cli ping
interval: 30s
timeout: 5s
retries: 2
networks:
- IPv4
networks:
IPv4:
external:
name: IPv4