Deploying a 4ga Boards App
Introduction
4ga Boards is a collaborative kanban-style board for managing projects and tasks. This guide shows how to containerize 4ga Boards with a Dockerfile, connect it to a database, persist uploads, and deploy it to Klutch.sh over HTTP.
Prerequisites
- GitHub repository containing your Dockerfile.
- PostgreSQL or MySQL database (managed or deployed separately).
- Klutch.sh project ready in klutch.sh/app.
Project structure
.└── DockerfileSample Dockerfile
FROM 4ga/boards:latest
# Default app portENV PORT=3000EXPOSE 3000Required environment variables
APP_URL– public URL, e.g.,https://example-app.klutch.shAPP_SECRET– strong secret keyDB_CONNECTION–postgresormysqlDB_HOST,DB_PORT,DB_NAME,DB_USER,DB_PASSWORDPORT=3000
Optional environment variables
NODE_ENV=productionLOG_LEVEL=infoMAIL_HOST,MAIL_USER,MAIL_PASSWORDif you enable email notifications
Persistence
If you store attachments or exports locally, attach a volume:
- Mount path:
/app/storage - Size: based on expected attachments and exports
Networking
- Protocol: HTTP
- Internal port:
3000 - Users reach
https://example-app.klutch.shwhile Klutch.sh routes to port3000inside the container.
Health check (recommended)
curl -I http://localhost:3000Deployment on Klutch.sh
- Push your Dockerfile to GitHub.
- In klutch.sh/app, create a new app and select GitHub as the source.
- Klutch.sh automatically detects the Dockerfile in the repository root.
- Select HTTP traffic and set the internal port to
3000. - Add environment variables for
APP_URL,APP_SECRET, and database connection settings. Mark secrets as sensitive. - Attach a persistent volume at
/app/storageif you want to keep uploads locally. - Deploy. After the app starts, sign in with your admin account and create your first board.
Verification
-
UI: open
https://example-app.klutch.shand confirm the 4ga Boards UI loads. -
Quick check:
Terminal window curl -I https://example-app.klutch.sh
Next steps
- Configure email for notifications if needed.
- Enable database backups and, if used, volume snapshots.
- Harden secrets by rotating
APP_SECRETand database credentials periodically.