Create entrypoint.sh
Browse files- entrypoint.sh +13 -0
entrypoint.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Запускаем Pushgateway в фоновом режиме
|
| 4 |
+
pushgateway --web.listen-address=":9091" &
|
| 5 |
+
|
| 6 |
+
# Запускаем Prometheus в фоновом режиме
|
| 7 |
+
prometheus --config.file=/etc/prometheus/prometheus.yml \
|
| 8 |
+
--storage.tsdb.retention.time=3d \
|
| 9 |
+
--storage.tsdb.path=/prometheus \
|
| 10 |
+
--web.listen-address=":9090" &
|
| 11 |
+
|
| 12 |
+
# Запускаем Nginx в foreground (чтобы контейнер не завершился)
|
| 13 |
+
exec nginx -g "daemon off;"
|