Installation
Prerequisites
Section titled “Prerequisites”- A fresh Ubuntu server (cloud VM, VPS, or bare metal)
- A domain name with its DNS A record already pointing at the server’s IP address
- Root SSH access to the server
The server needs outbound internet access to pull Docker images and obtain a Let’s Encrypt certificate.
One-command installation
Section titled “One-command installation”From the server (as root or via sudo), run:
curl -fsSL https://raw.githubusercontent.com/cdcgov/salt/main/salt_management/install.sh \ | sudo bash -s -- your-domain.example.org admin@example.orgReplace your-domain.example.org with your actual domain and admin@example.org with a valid email address for the Let’s Encrypt certificate.
The script:
- Installs Docker if it is not already present
- Clones the SALT repository
- Builds the Docker image (Node.js + R + Quarto, ~2 GB)
- Starts the container with a persistent volume and automatic restart
- Opens the firewall (ports 80 and 443)
- Runs
setup-nginx.shto configure nginx with Let’s Encrypt TLS - Prints the demo facility API key and the first administrator’s one-time password when complete
When the script finishes, browse to https://your-domain.example.org and sign in as:
- Username:
admin - Password: the one-time password the script printed
You are asked to choose your own password (at least 12 characters) before you can do anything else. If you lose the one-time password, it is also in /opt/salt/salt-data/initial-admin-password until it has been changed.
What ships on first boot
Section titled “What ships on first boot”The first boot seeds the database with:
- An
adminuser with a random one-time password (there is no default password) - A Demo Facility with a random API key (shown in the container logs, use it to register a tablet)
- Three HIV lab tests: HIV Confirmatory (dropdown), CD4 Count (numeric), HIV Viral Load (numeric)
- Short MSM Survey: a complete, ready-to-run link-tracing survey, seeded active
- SALT HIV Survey: a small 6-question starter for experimenting with the editor, seeded inactive
Optional install flags
Section titled “Optional install flags”| Flag | Description |
|---|---|
--install-dir DIR |
Directory to clone the repo into (default: /opt/salt) |
--image IMAGE |
Use a pre-built Docker image instead of building |
--upstream PORT |
Internal port the container listens on (default: 3000) |
--repo URL |
Alternative Git repository URL |
--branch NAME |
Git branch to check out |
--skip-firewall |
Skip firewall configuration |
--skip-nginx |
Skip nginx / Let’s Encrypt setup |
Run install.sh --help for details.
Next steps
Section titled “Next steps”- Docker deployment options: non-default setups, upgrades, and backups
- First steps: configure your first facility and connect a tablet
