prometheus-server-app/start.sh

12 lines
304 B
Bash
Raw Normal View History

2020-11-07 14:21:18 +00:00
#!/bin/bash
2020-11-05 12:54:41 +00:00
2020-11-07 14:21:18 +00:00
set -eu
2020-11-05 12:54:41 +00:00
mkdir -p /app/data/runtime /app/data/config
chown -R cloudron:cloudron /app/data
2020-11-06 18:55:38 +00:00
echo "=> Starting Prometheus"
2020-11-05 12:54:41 +00:00
cd /usr/local/bin/prometheus
exec /usr/local/bin/gosu cloudron:cloudron ./prometheus --config.file=/app/data/config/prometheus.yml --storage.tsdb.path=/app/data/runtime