From e944a87b42bea30278ce74af115b6a5d953a655c Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 14 Oct 2026 22:22:56 +0200 Subject: [PATCH] Allow reader-only release selection in Compose --- .env.example | 2 ++ docker-compose.yml | 1 + docs/reading-limiter.md | 7 +++++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 9cc0db5..23c02e4 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,6 @@ APP_IMAGE=mangacircus:local +# Optional reader-only release. Leave empty to use APP_IMAGE. +# READER_IMAGE=mangacircus:local VCS_REF=development READER_BIND=127.0.0.1 READER_PORT=8080 diff --git a/docker-compose.yml b/docker-compose.yml index 93b74bb..6f7dcf6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ x-app: &app services: reader: <<: *app + image: ${READER_IMAGE:-${APP_IMAGE:-mangacircus:local}} command: [node, runtime/launch.js, reader] ports: ["${READER_BIND:-127.0.0.1}:${READER_PORT:-8080}:8080"] volumes: diff --git a/docs/reading-limiter.md b/docs/reading-limiter.md index d79bb9d..a00db13 100644 --- a/docs/reading-limiter.md +++ b/docs/reading-limiter.md @@ -11,8 +11,11 @@ DRM. There is no schedule-changing API or UI. ## Docker configuration -Set these deployment variables on the reader service, then recreate **only the -reader**. Leaving `READING_WINDOWS_JSON` empty disables the limiter. Day keys +Set these deployment variables in the Compose `.env` file next to +`docker-compose.yml`, then recreate **only the reader**. The `reader` service +passes them through to the container. `READER_IMAGE` selects a reader-only +release while `APP_IMAGE` continues to select the scraper and Sentinel image. +Leaving `READING_WINDOWS_JSON` empty disables the limiter. Day keys are `0` Sunday through `6` Saturday. Each day has any number of `[start,end]` intervals; an end earlier than its start carries into the next day. `24:00` is valid only as an end. Intervals are start-inclusive and end-exclusive, resolved