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

37 lines
923 B
Plaintext
Raw Normal View History

2023-11-06 10:39:27 +08:00
# {{ ansible_managed }}
services:
2023-12-27 14:59:44 +08:00
redlib:
container_name: redlib
#image: quay.io/redlib/redlib:latest
image: git.opnxng.com/opnxng/redlib:latest
2023-11-06 10:39:27 +08:00
security_opt:
2023-12-27 14:59:44 +08:00
#- seccomp="seccomp-redlib.json"
2023-11-06 10:39:27 +08:00
- no-new-privileges
2024-05-29 06:25:43 +08:00
user: nobody
read_only: true
2023-11-06 10:39:27 +08:00
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
2023-12-27 14:59:44 +08:00
- REDLIB_DEFAULT_SHOW_NSFW=on
2024-05-29 06:25:43 +08:00
- REDLIB_DEFAULT_BLUR_NSFW=off
- REDLIB_DEFAULT_LAYOUT=card
2024-11-02 13:34:19 +08:00
#- REDLIB_DEFAULT_THEME=black
2024-05-29 06:25:43 +08:00
- REDLIB_SFW_ONLY=off
# - REDLIB_BANNER=
- REDLIB_ROBOTS_DISABLE_INDEXING=on
- REDLIB_PUSHSHIFT_FRONTEND=undelete.pullpush.io
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
ports:
- 8882:8080
networks:
2023-12-27 14:59:44 +08:00
- redlib
2023-11-06 10:39:27 +08:00
networks:
2023-12-27 14:59:44 +08:00
redlib:
name: redlib