Skip to content

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

fix(docker): use writable directories for supervisord pid and redis data

Tobias Wallura9b57c5697fac
diff --git a/deploy/docker/entrypoint.sh b/deploy/docker/entrypoint.sh
index 1b403c72..b624a311 100644
--- a/deploy/docker/entrypoint.sh
+++ b/deploy/docker/entrypoint.sh
@@ -34,4 +34,4 @@ else
fi
export GUNICORN_BIND
-exec supervisord -c supervisord.conf
+exec supervisord -c supervisord.conf --pidfile /tmp/supervisord.pid
diff --git a/deploy/docker/supervisord.conf b/deploy/docker/supervisord.conf
index b99f8a0b..91b4b253 100644
--- a/deploy/docker/supervisord.conf
+++ b/deploy/docker/supervisord.conf
@@ -6,7 +6,7 @@ logfile_maxbytes=0
[program:redis]
; Loopback-only and password-protected. REDIS_PASSWORD is exported by
; entrypoint.sh from the mounted secret; the app must supply it to connect.
-command=/usr/bin/redis-server --loglevel notice --bind 127.0.0.1 ::1 --requirepass "%(ENV_REDIS_PASSWORD)s"
+command=/usr/bin/redis-server --loglevel notice --bind 127.0.0.1 ::1 --requirepass "%(ENV_REDIS_PASSWORD)s" --dir /var/lib/redis
user=appuser ; Run redis as our non-root user
autorestart=true
priority=10