grafana fonctionne dans le compose

This commit is contained in:
Alexandre Chevalier
2026-02-15 13:59:48 +01:00
parent bf241435be
commit 0acb6ee271
2 changed files with 6 additions and 13 deletions

View File

@@ -76,12 +76,11 @@ services:
- app-network
grafana:
# build:
# context: ..
# dockerfile: dockerfiles/grafana/Dockerfile
image: grafana/grafana:12.3
container_name: grafana
restart: unless-stopped
ports:
- "3000:3000"
#restart: unless-stopped
volumes:
- grafana-data:/var/lib/grafana
- ../grafana/provisioning:/etc/grafana/provisioning
@@ -90,7 +89,7 @@ services:
environment:
- GF_SECURITY_ADMIN_USER=tlc
- GF_SECURITY_ADMIN_PASSWORD=tlc
- GF_INSTALL_PLUGINS=grafana-munin-datasource # Telechargement du plugin via var d'env
- GF_PLUGINS_PREINSTALL=grafana-munin-datasource # Telechargement du plugin via var d'env
networks:
- app-network
@@ -127,8 +126,7 @@ services:
networks: # Declare the network to be used by the services
app-network: # Is a user-defined network
#external: false # If true, Docker Compose will look for an existing network with the same name and use it. If false or not specified, Docker Compose will create a new network.
name: app-network #Name of the network (optional, Docker Compose will generate one if not provided)
volumes :
grafana-data:
volumes : # Declare the volume to be used by the Grafana service (NE PAS SUPPRIMER !!)
grafana-data: # Name of the volume

View File

@@ -1,5 +0,0 @@
FROM grafana/grafana:12.3
USER root
RUN grafana-cli plugins install grafana-munin-datasource
USER grafana