1
Create the project and environment
In Dokploy, create an HMIS project and a
staging or production environment. Assign access only to the operators responsible for that environment.2
Create a Docker Compose service
Select a Git source, connect the HMIS repository, and choose the approved branch. Use:Do not select
docker-compose.local.yml; it publishes development endpoints and mounts source files intended for Docker Desktop.3
Configure deployment behavior
Disable automatic production deployment until the staging and approval workflow is established. Keep
RUN_MIGRATIONS=false; migrations must run exactly once as a controlled release step.4
Add environment variables
Enter the variables from Production environment variables. Do not upload the application’s local
.env file.5
Render and review Compose
Confirm that the project resolves these services before the first deployment:
6
Save without clinical traffic
Do not point production user or device traffic at the service until domains, storage, migrations, administrator setup, backups, and smoke tests are complete.
Repository access
- Use a dedicated read-only deploy key or Git application when possible.
- Protect the production branch and require review and passing tests.
- Pin the commit used for each release record.
- Revoke repository access when a deployment operator leaves the role.
Current Compose limitation
For production:- Do not create domains for
mock-analyzerormock-modality. - Stop both mock services immediately after every deployment.
- Confirm their state is stopped during each go-live and release check.
- Keep all simulator ports blocked at the host and network firewall.
- Track a future application-infrastructure change to introduce
core,integration, anddemoCompose profiles.