Document and package opt-in source worker

This commit is contained in:
Codex committed 2026-10-13 21:52:22 +02:00
1 parent f4123b32e4
commit cc2fd05062
2 files changed
+57 -1

No files matched your search

+31 -1
View File
@@ -75,7 +75,8 @@ services:
SCRAPER_HOST: 0.0.0.0
SCRAPER_PORT: "8091"
SCRAPER_TOKEN_FILE: /run/secrets/scraper_token
networks: [backend, egress]
SOURCE_PLUGIN_URL: ${SOURCE_PLUGIN_URL:-}
networks: [backend, egress, plugin_backend]
healthcheck:
test: [CMD, node, tools/healthcheck.js, scraper]
interval: 30s
@@ -108,9 +109,38 @@ services:
start_period: 60s
retries: 3
source-plugin-weebcentral:
image: ${APP_IMAGE:-mangacircus:local}
build:
context: .
args:
VCS_REF: ${VCS_REF:-development}
profiles: [source-plugins]
command: [node, scraper/plugins/worker.js]
init: true
restart: unless-stopped
read_only: true
tmpfs: [/tmp]
security_opt: [no-new-privileges:true]
cap_drop: [ALL]
pids_limit: 64
mem_limit: 256m
environment:
SOURCE_PLUGIN_HOST: 0.0.0.0
SOURCE_PLUGIN_PORT: "8094"
networks: [plugin_backend]
healthcheck:
test: [CMD, node, tools/healthcheck-source-plugin.js]
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
networks:
backend:
internal: true
plugin_backend:
internal: true
egress: {}
secrets: