Set up your own app infrastructure
The outcome is a clear process for deploying and maintaining one app on your own server. Before adding dashboards and services, identify persistent data, responsibility for updates, and a recovery method. You do not need to deploy every tool in the kit at once.
Steps
Define the change and deployment process
Use Forgejo if you need your own Git service. Consider Dokploy for deployment workflows and Portainer for container management. Choose a main deployment approach and save the configuration; Forgejo is optional when you already have a repository.
Set up one reverse proxy
Caddy suits HTTPS and routing; Traefik suits dynamic routes and discovery. Choose one for your environment. Check public URLs, certificates, internal endpoints, and administrative dashboard access.
Host private images As needed
Harbor is useful when the process needs its own OCI artifact registry, permissions, and replication. For a first app without this requirement, you can defer a separate registry. Check that CI and deployment can retrieve the required image, and restrict write permissions.
Organize secret management As needed
Infisical helps separate projects, environments, and configuration versions. Add it if you need a centralized process; even in a simpler setup, keep secrets out of the repository and logs. Check that the app can access only the environment it needs.
Add error collection As needed
GlitchTip receives errors through compatible Sentry SDKs. Send a controlled error and confirm that the responsible person sees the signal. Exclude secrets and unnecessary personal data from events; choose managed or self-hosted deployment.
Test updates and recovery
Save configuration, persistent volumes, and the required backups. Restore the app in a separate test environment and check the data. Repeat an update and rollback to the previous version; a dashboard backup button does not prove recovery works.
Conditions and limitations
- Self-hosted code does not include a server, domain, backup storage, or administrator time.
- Portainer Business, Dokploy's proprietary modules and Cloud, and Infisical's enterprise features have separate terms.
- GlitchTip distributes code under MIT and offers support to commercial self-hosted users; managed plans are separate.
- Dashboards and registries need their own access controls; tools do not establish the security of the whole infrastructure.
- Self-hosting suits those prepared to maintain updates and disaster recovery.
How to check the result
- There is one main deployment process and its configuration is saved.
- Public routes and HTTPS work, and administrative dashboards are restricted.
- Secrets are absent from source code, images, and logs.
- A controlled error is received if error collection is connected.
- Data is restored in a separate environment; updates and rollback are tested.
Other approaches
- Caddy
A proxy for simple website deployment with automatic HTTPS instead of dynamic discovery.
- Traefik Proxy
A proxy for a container environment with dynamic routes instead of a static setup.