Skip to content

Add support for running Redis inside the pretalx container - #114

Open
snoack wants to merge 1 commit into
pretalx:mainfrom
snoack:bundled-redis
Open

snoack wants to merge 1 commit into
pretalx:mainfrom
snoack:bundled-redis

Conversation

@snoack

@snoack snoack commented Sep 10, 2026 •

Copy link
Copy Markdown

Setting REDIS_BUNDLED=yes runs Redis alongside the web and task workers, so a single-container deployment no longer needs a separate Redis service. It binds to loopback only and keeps its data in $PRETALX_DATA_DIR/redis, so it is persisted with the rest of /data; REDIS_ARGS can add redis-server options such as --appendonly yes. Defaults to off, and the variables it exports override pretalx.cfg, as environment variables are the last config layer pretalx reads.

pretalx runs Django system checks that reach for the cache and the celery broker, so commands that talk to it wait for Redis first; supervisord starts its programs in parallel. The migrations move into the web worker for that reason, and the task worker does not migrate, so the two cannot race on a fresh database.

Setting REDIS_BUNDLED=yes runs Redis alongside the web and task workers,
so a single-container deployment no longer needs a separate Redis
service. It binds to loopback only and keeps its data in
$PRETALX_DATA_DIR/redis, so it is persisted with the rest of /data;
REDIS_ARGS can add redis-server options such as --appendonly yes.
Defaults to off, and the variables it exports override pretalx.cfg, as
environment variables are the last config layer pretalx reads.

pretalx runs Django system checks that reach for the cache and the
celery broker, so commands that talk to it wait for Redis first;
supervisord starts its programs in parallel. The migrations move into
the web worker for that reason, and the task worker does not migrate, so
the two cannot race on a fresh database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant