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-27 14:59:44 +08:00
|
|
|
redlib:
|
|
|
|
container_name: redlib
|
2024-06-08 21:59:03 +08:00
|
|
|
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
|
2024-06-17 00:30:16 +08:00
|
|
|
- RUST_LOG=redlib=trace
|
2024-06-09 10:12:32 +08:00
|
|
|
# - RUST_LOG=trace
|
2023-12-15 05:33:49 +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
|
|
|
|
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
|