2023-11-06 10:39:27 +08:00
|
|
|
# {{ ansible_managed }}
|
2024-06-09 10:12:32 +08:00
|
|
|
version: "3.8"
|
2023-11-06 10:39:27 +08:00
|
|
|
services:
|
2023-12-15 05:33:49 +08:00
|
|
|
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
|
|
|
|
|
2023-11-06 10:39:27 +08:00
|
|
|
libreddit:
|
|
|
|
container_name: libreddit
|
2023-12-15 05:33:49 +08:00
|
|
|
# image: libreddit/libreddit:latest
|
|
|
|
image: git.opnxng.com/opnxng/libreddit:latest
|
2023-11-06 10:39:27 +08:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges
|
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- TZ=Asia/Singapore
|
|
|
|
- LIBREDDIT_DEFAULT_THEME=black
|
|
|
|
- LIBREDDIT_DEFAULT_SHOW_NSFW=on
|
2023-11-22 08:37:19 +08:00
|
|
|
restart: unless-stopped
|
2023-11-06 10:39:27 +08:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
|
|
|
|
interval: 5m
|
|
|
|
timeout: 3s
|
2023-12-15 05:33:49 +08:00
|
|
|
network_mode: "service:libreddit-warp"
|
2023-11-06 10:39:27 +08:00
|
|
|
|
|
|
|
networks:
|
2023-11-10 05:28:42 +08:00
|
|
|
libreddit:
|
2023-11-22 08:37:19 +08:00
|
|
|
name: libreddit
|