Skip to content

Commit 2429018

Browse files
authored
Add NgAlert and Plugin catalog to docker image (#72)
1 parent dfd4e92 commit 2429018

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ ARG DEBIAN_FRONTEND=noninteractive
88
# Set Grafana options
99
ENV GF_ENABLE_GZIP="true"
1010
ENV GF_USERS_DEFAULT_THEME="light"
11+
ENV GF_FEATURE_TOGGLES_ENABLE="ngalert"
12+
ENV GF_PLUGINS_PLUGIN_ADMIN_ENABLED="true"
1113

1214
# Paths
1315
ENV GF_PATHS_PROVISIONING="/etc/grafana/provisioning"

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ services:
1919
- GF_ENABLE_GZIP=true
2020
- GF_USERS_DEFAULT_THEME=light
2121
- GF_INSTALL_PLUGINS=redis-app
22+
- GF_FEATURE_TOGGLES_ENABLE=ngalert
23+
- GF_PLUGINS_PLUGIN_ADMIN_ENABLED=true
2224
volumes:
2325
- ./provisioning:/etc/grafana/provisioning
2426
# Uncomment to preserve Grafana configuration

docker-compose/dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ services:
2323
- GF_ENABLE_GZIP=true
2424
- GF_USERS_DEFAULT_THEME=light
2525
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=redis-app,redis-datasource
26+
- GF_FEATURE_TOGGLES_ENABLE=ngalert
27+
- GF_PLUGINS_PLUGIN_ADMIN_ENABLED=true
2628
# Uncomment to run in debug mode
2729
# - GF_LOG_LEVEL=debug
2830
volumes:

docker-compose/master.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ services:
2323
- GF_ENABLE_GZIP=true
2424
- GF_USERS_DEFAULT_THEME=light
2525
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=redis-app,redis-datasource
26+
- GF_FEATURE_TOGGLES_ENABLE=ngalert
27+
- GF_PLUGINS_PLUGIN_ADMIN_ENABLED=true
2628
# Uncomment to run in debug mode
2729
# - GF_LOG_LEVEL=debug
2830
volumes:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"format": "prettier --write \"**\"",
2626
"sign": "grafana-toolkit plugin:sign",
2727
"start": "docker-compose up",
28-
"start:dev": "docker-compose -f docker-compose/dev.yml up",
28+
"start:dev": "docker-compose -f docker-compose/dev.yml pull && docker-compose -f docker-compose/dev.yml up",
2929
"start:master": "docker-compose -f docker-compose/master.yml pull && docker-compose -f docker-compose/master.yml up",
3030
"stop": "docker-compose down",
3131
"stop:dev": "docker-compose -f docker-compose/dev.yml down",

0 commit comments

Comments
 (0)