1. Create the configuration
Create a directory for your deployment and a.env file inside it. Select an exact image tag from the Chartbrew image repository.
CHARTBREW_IMAGE is used by this Compose example to select the image. Replace every placeholder before you start. Generate an encryption key with openssl rand -hex 32. Run it again for each separate password or secret. Save these values securely and keep them during upgrades.
The public URLs must be reachable from your browser. For a local-only test, use http://localhost:4018 and http://localhost:4019. For a server, configure Domains and HTTPS.
2. Add the Compose file
Save this ascompose.yaml beside .env:
chartbrew:4018 and chartbrew:4019 as upstream addresses.
3. Start Chartbrew
From the deployment directory:Change configuration
After editing.env, recreate the application container:
VITE_APP_* values. Wait for the build to finish, then reload the page. A restart alone does not apply changed Compose environment values.
Add SMTP or integration settings to .env as needed. See Environment variables. Never put server secrets in VITE_APP_* variables because the browser receives them.
Other database and build options
Chartbrew supports MySQL and PostgreSQL. To use an existing database, remove thedb service and its depends_on entry, then set the database host, port, credentials, and dialect to match it. Use mysql for MySQL or postgres for PostgreSQL.
To build from source, the repository includes MySQL and PostgreSQL examples. Select your release first, keep the complete checkout, and configure .env. Inside Docker, localhost refers to the current container; use service names such as db and redis for the bundled services.
Before using those repository examples on a public server, remove the Redis port mapping, add persistent upload storage, and restrict the application ports as shown above. Setting REDIS_PASSWORD in the official Redis image’s environment does not itself enable Redis authentication. Configure Redis authentication explicitly if your network requires it.
Back up and upgrade
Back up the database with database-native tools, the uploads volume, and.env. Test your restore procedure. Do not run docker compose down -v unless you intend to delete the data volumes.
For upgrades, stop the application, make a backup, select the new image tag, and follow the release’s migration instructions. Keep the database image version unchanged during an application upgrade unless you also plan a database upgrade.