apt install mongodb-org python3-{pip,venv,dev,setuptools} nginx
Verify compatible versions of the latter software
python3 --version
pip3 --version
mongod --version
Create a new venv
for Alerta, then activate it
python3 -m venv /opt/alerta && \
cd /opt/alerta && \
source bin/activate
Install alerta-server
using pip
pip3 install alerta-server
The default settings for Alerta are defined in settings.py
- this file should NOT be modified.
To override any settings, create a new config file /etc/alertad.conf
Start up Alerta to make sure it works
alertad run --port 8080