I have developped a simple tool that converts an env variable into a file which is than used in the AlertManager container. Allowing multiline env variables would make it possible to NOT add the env variable directly in the compose file and pass it vie the cli
balena push --env ALERTMANAGER_CONFIG="$ALERTMANAGER_CONFIG" 192.168.0.113
or set it via the balena portal GUI.
I currently can’t use the gui due to this bug:
P.S I have now added suport to the envToFile tool to expand the env vars so will test shortly and will let you know if it worked.