From 850a0071fce67aea575739f132ad72c2bc327238 Mon Sep 17 00:00:00 2001 From: Maxime Cannoodt Date: Wed, 3 Aug 2022 17:44:47 +0200 Subject: [PATCH] add grafana to docker-compose example --- docker-compose.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index d3f91fa..9aa46c2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,6 +47,7 @@ services: depends_on: migrate: condition: service_completed_successfully + restart: unless-stopped labels: - "traefik.enable=true" # tell Traefik this is something we would like to expose - "traefik.http.routers.backend.entrypoints=web" # what entrypoint should be used for the backend service. @@ -64,10 +65,25 @@ services: - NODE_ENV=production depends_on: - backend + restart: unless-stopped labels: - "traefik.enable=true" # tell Traefik this is something we would like to expose - "traefik.http.routers.frontend.entrypoints=web" # what entrypoint should be used for the frontend service. - "traefik.http.routers.frontend.rule=Host(`localhost`)" # + # grafana dashboard + grafana: + image: grafana/grafana:7.5.7 + ports: + - 3000:3000 + restart: unless-stopped + volumes: + - ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources + - grafana-data:/var/lib/grafana + - sqlite:/database/ + environment: + - GF_INSTALL_PLUGINS=frser-sqlite-datasource + volumes: - sqlite: \ No newline at end of file + sqlite: + grafana-data: \ No newline at end of file