A web app to calculate CO2 equilibrium pressure and carbonation time for homebrewed beer.
Live at: https://smph.gcourtot.fr
When I started kegging instead of bottling my beers I had to figure out which pressure to apply to my keg in order to get a good beer. I used this spreadsheet from the brassageamateur.com community. It works but I need to have a computer. So I decided to port it to a web tool.
- Calculates CO2 equilibrium pressure based on temperature and desired carbonation
- Estimates carbonation time based on keg parameters
- Available as a PWA — add it to your home screen from your browser
- Select your beer style and adjust the desired carbonation level
- Enter temperature, volume, exchange surface, initial pressure and keg pressure
- Hit Calculate
| Component | Technology |
|---|---|
| Frontend | HTML / CSS / Vanilla JavaScript |
| Server | Apache HTTPd (Docker image httpd:alpine3.21) |
| CI/CD | GitHub Actions |
| Registry | Docker Hub |
| Deployment | n8n (webhook → Watchtower) |
docker build -t carbo .
docker run -d -p 8080:80 carbo
# Open http://localhost:8080- Build the Docker image
- Start the container
- Verify that
/version.txtcontains the correct commit SHA
- Tag the current
latestimage asprevious(for rollback) - Build and push the new
latestimage to Docker Hub - Trigger deployment via n8n webhook
- Verify in production that
/version.txtmatches the expected SHA - Automatic rollback if the production check fails:
previousis re-tagged aslatestand redeployed
| Secret | Description |
|---|---|
DOCKERHUB_USERNAME |
Docker Hub username |
DOCKERHUB_TOKEN |
Docker Hub access token |
N8N_WEBHOOK_ID |
n8n webhook ID triggering the redeployment |
MIT License — Nem0oo
