Merge pull request #14 from TouchInstinct/feature/grafana.port

grafana: add port
This commit is contained in:
TonCherAmi 2020-06-01 14:24:55 +03:00 committed by GitHub
commit 8397b699c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,27 @@
## monitoring.grafana
#### Role arguments:
```yaml
grafana:
# a string designating the port to bind
port: "6379"
# a string used to construct GF_SERVER_ROOT_URL,
# by default it is also used in the traefik frontend rule
domain: "grafana.internal"
ldap:
# a boolean that switches LDAP authentication on or off
enabled: false
# a dictionary of ldap access group mappings
access_groups:
admin: "cn=grafana.admin,ou=groups,dc=example,dc=com"
editor: "cn=grafana.admin,ou=groups,dc=example,dc=com"
viewer: "cn=grafana.admin,ou=groups,dc=example,dc=com"
docker:
# a list of networks to attach to
networks:
- web
# a dictionary of docker labels to add
labels:
"traefik.enable": "off"
```

View File

@ -19,6 +19,10 @@ services:
labels: {{ grafana.docker.labels | default(grafana__default_labels) | to_json }}
networks: {{ grafana.docker.networks | default([]) | to_json }}
restart: unless-stopped
{% if grafana.port is defined %}
ports:
- "{{ grafana.port }}:3000"
{% endif %}
logging:
driver: json-file
options: