Skip to main content
id: docker-config title: Docker Configuration (.env) This page documents the environment variables used by the Docker deployment. Use a .env file and avoid committing secrets to git.

Minimal .env example

Notes

  • You can either provide the MySQL fields individually (as above) or use a single DATABASE_URL such as:
DATABASE_URL=mysql://sc_user:pass@mysql:3306/sitecopilot
  • If Redis requires auth, set REDIS_PASSWORD and ensure the site config is aware.
  • Keep secrets out of source control; use a secrets manager for production.
  • volumes for MySQL, Redis and uploads (persistent storage).
  • Backups: schedule mysqldump to an object storage or snapshot volumes.