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

41 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-11-06 10:39:27 +08:00
# {{ ansible_managed }}
version: '3.7'
services:
2023-12-27 14:59:44 +08:00
redlib:
container_name: redlib
2024-05-29 06:25:43 +08:00
image: ghcr.io/kankerdev/redlib:latest # Temp workaround
# image: quay.io/redlib/redlib:latest-arm
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
2024-05-29 06:25:43 +08:00
- RELIB_DEFAULT_THEME=black
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-06-01 13:51:20 +08:00
- REDLIB_DEFAULT_THEME=dark
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
# - RUST_LOG=redlib=trace #logging on the crate
- RUST_LOG=trace
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