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

35 lines
854 B
Django/Jinja

# {{ ansible_managed }}
version: '3.7'
services:
redlib:
container_name: redlib
image: ghcr.io/kankerdev/redlib:latest
# Temp workaround
# image: quay.io/redlib/redlib:latest-arm
security_opt:
#- seccomp="seccomp-redlib.json"
- no-new-privileges
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
- LIBREDDIT_DEFAULT_THEME=black
- LIBREDDIT_DEFAULT_SHOW_NSFW=on
- REDLIB_DEFAULT_THEME=black
- REDLIB_DEFAULT_SHOW_NSFW=on
- RUST_LOG=redlib=trace #logging on the crate
#- RUST_LOG=trace
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
interval: 5m
timeout: 3s
ports:
- 8882:8080
networks:
- redlib
networks:
redlib:
name: redlib