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

44 lines
1.0 KiB
Django/Jinja

# {{ ansible_managed }}
version: "3.8"
services:
libreddit-warp:
image: caomingjun/warp
container_name: libreddit-warp
restart: always
environment:
- WARP_SLEEP=2
cap_add:
- NET_ADMIN
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv4.conf.all.src_valid_mark=1
volumes:
- {{ docker_dir }}/libreddit:/var/lib/cloudflare-warp
ports:
- 8882:8080
networks:
- libreddit
libreddit:
container_name: libreddit
# image: libreddit/libreddit:latest
image: git.opnxng.com/opnxng/libreddit:latest
security_opt:
- no-new-privileges
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
- LIBREDDIT_DEFAULT_THEME=black
- LIBREDDIT_DEFAULT_SHOW_NSFW=on
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
interval: 5m
timeout: 3s
network_mode: "service:libreddit-warp"
networks:
libreddit:
name: libreddit