diff --git a/.env b/.env index 30b5044..a24bd6a 100644 --- a/.env +++ b/.env @@ -109,3 +109,4 @@ GLUETUN_JAPAN_INTERNAL_PORT=8888 GLUETUN_JAPAN_EXTERNAL_PORT=8888 HANDBRAKER_SERVER_INTERNAL_PORT=9999 HANDBRAKER_SERVER_EXTERNAL_PORT=9997 +REDLIB_EXTERNAL_PORT=8088 diff --git a/docker-compose.yml b/docker-compose.yml index 9aa091e..2eade40 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,6 +21,7 @@ include: - services/7dtdserver.yml - services/gluetun.yml - services/handbrake-server.yml + - services/redlib.yml services: caddy: diff --git a/services/redlib.yml b/services/redlib.yml new file mode 100644 index 0000000..9909ac3 --- /dev/null +++ b/services/redlib.yml @@ -0,0 +1,28 @@ +--- +services: + redlib: + image: quay.io/redlib/redlib:latest + restart: unless-stopped + container_name: "redlib" + ports: + - "127.0.0.1:8080:${REDLIB_EXTERNAL_PORT}" # Specify `127.0.0.1:8080:8080` instead if using a reverse proxy + user: nobody + read_only: true + security_opt: + - no-new-privileges:true + # - seccomp=seccomp-redlib.json + cap_drop: + - ALL + environment: + - REDLIB_DEFAULT_THEME=dracula; + - REDLIB_DEFAULT_SHOW_NSFW=on; + - REDLIB_DEFAULT_HIDE_AWARDS=on; + - REDLIB_DEFAULT_USE_HLS=on; + - REDLIB_DEFAULT_BLUR_SPOILER=on; + networks: + public: + ipv4_address: 192.168.240.51 + healthcheck: + test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"] + interval: 5m + timeout: 3s \ No newline at end of file