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

55 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-11-06 10:39:27 +08:00
# {{ ansible_managed }}
version: '3.7'
services:
teddit:
container_name: teddit
image: teddit/teddit:latest
security_opt:
- no-new-privileges
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
- DOMAIN=i.opnxng.com
- USE_HELMET=true
- USE_HELMET_HSTS=true
- TRUST_PROXY=true
- REDIS_HOST=teddit-redis
- THEME=dark
- FLAIRS_ENABLED=false
- API_ENABLED=false
- SUGGESTED_SUBREDDITS=["Saved", "Selfhosted", "Linux", "Privacy", "DataHoarder"]
- DOMAIN_REPLACEMENTS=[["twitter.com","n.opnxng.com"],["quora.com","q.opnxng.com."],["imgur.com","r.opnxng.com"]]
restart: unless-stopped
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/about"]
interval: 1m
timeout: 3s
ports:
- 8881:8080
depends_on:
- teddit-redis
logging:
driver: none
networks:
- IPv4
teddit-redis:
container_name: teddit-redis
image: redis:alpine
command: redis-server
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
- REDIS_REPLICATION_MODE=master
restart: unless-stopped
networks:
- IPv4
networks:
IPv4:
external:
name: IPv4