add grafana to docker-compose example
This commit is contained in:
parent
c6c04cd921
commit
850a0071fc
@ -47,6 +47,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
migrate:
|
migrate:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true" # tell Traefik this is something we would like to expose
|
- "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.
|
- "traefik.http.routers.backend.entrypoints=web" # what entrypoint should be used for the backend service.
|
||||||
@ -64,10 +65,25 @@ services:
|
|||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true" # tell Traefik this is something we would like to expose
|
- "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.entrypoints=web" # what entrypoint should be used for the frontend service.
|
||||||
- "traefik.http.routers.frontend.rule=Host(`localhost`)" #
|
- "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:
|
volumes:
|
||||||
sqlite:
|
sqlite:
|
||||||
|
grafana-data:
|
Loading…
Reference in New Issue
Block a user