-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Plugin: Extend the docker-compose file (#1485)
- Loading branch information
1 parent
6da026b
commit d12e2ba
Showing
4 changed files
with
42 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/create-plugin/templates/common/.config/docker-compose-base.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
services: | ||
grafana: | ||
user: root | ||
container_name: '{{ pluginId }}' | ||
|
||
build: | ||
context: . | ||
args: | ||
grafana_image: ${GRAFANA_IMAGE:-{{~grafanaImage~}} } | ||
grafana_version: ${GRAFANA_VERSION:-11.3.2} | ||
development: ${DEVELOPMENT:-false} | ||
anonymous_auth_enabled: ${ANONYMOUS_AUTH_ENABLED:-true} | ||
ports: | ||
- 3000:3000/tcp | ||
{{#if hasBackend}} | ||
- 2345:2345/tcp # delve | ||
security_opt: | ||
- "apparmor:unconfined" | ||
- "seccomp:unconfined" | ||
cap_add: | ||
- SYS_PTRACE | ||
{{/if}} | ||
volumes: | ||
- ../dist:/var/lib/grafana/plugins/{{ pluginId }} | ||
- ../provisioning:/etc/grafana/provisioning | ||
- ..:/root/{{ pluginId }} | ||
|
||
environment: | ||
NODE_ENV: development | ||
GF_LOG_FILTERS: plugin.{{ pluginId }}:debug | ||
GF_LOG_LEVEL: debug | ||
GF_DATAPROXY_LOGGING: 1 | ||
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: {{ pluginId }} |
34 changes: 3 additions & 31 deletions
34
packages/create-plugin/templates/common/docker-compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,5 @@ | ||
services: | ||
grafana: | ||
user: root | ||
container_name: '{{ pluginId }}' | ||
|
||
build: | ||
context: ./.config | ||
args: | ||
grafana_image: ${GRAFANA_IMAGE:-{{~grafanaImage~}} } | ||
grafana_version: ${GRAFANA_VERSION:-11.3.2} | ||
development: ${DEVELOPMENT:-false} | ||
anonymous_auth_enabled: ${ANONYMOUS_AUTH_ENABLED:-true} | ||
ports: | ||
- 3000:3000/tcp | ||
{{#if hasBackend}} | ||
- 2345:2345/tcp # delve | ||
security_opt: | ||
- "apparmor:unconfined" | ||
- "seccomp:unconfined" | ||
cap_add: | ||
- SYS_PTRACE | ||
{{/if}} | ||
volumes: | ||
- ./dist:/var/lib/grafana/plugins/{{ pluginId }} | ||
- ./provisioning:/etc/grafana/provisioning | ||
- .:/root/{{ pluginId }} | ||
|
||
environment: | ||
NODE_ENV: development | ||
GF_LOG_FILTERS: plugin.{{ pluginId }}:debug | ||
GF_LOG_LEVEL: debug | ||
GF_DATAPROXY_LOGGING: 1 | ||
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: {{ pluginId }} | ||
extends: | ||
file: .config/docker-compose-base.yaml | ||
service: grafana |