Proxmox VE (PVE) installer that provisions a DHIS2 instance inside an LXC container and (optionally) configures NGINX in a separate LXC container by writing a location snippet under /etc/nginx/locations/ and injecting an include into a chosen vhost.
-
DHIS2 LXC (Ubuntu 22.04 template by default)
- Java 17
- PostgreSQL + PostGIS
- Tomcat 10 (tarball)
- Deploys DHIS2
ROOT.war - Writes
dhis.confunder/etc/dhis2/dhis.confand symlinks intoDHIS2_HOME
-
NGINX LXC (optional, separate container)
- Installs NGINX
- Writes:
/etc/nginx/locations/<path>.conf - Ensures your vhost
/etc/nginx/sites-available/<vhost>.confincludesinclude /etc/nginx/locations/*.conf;
Copy the folder to your Proxmox node and run:
cd pve-dhis2-install
chmod +x install.sh
sudo ./install.sh- This installer expects to run on a Proxmox host (it will refuse to run inside a container).
- Defaults (DB name/user, NGINX path) are derived from the DHIS2 LXC hostname.