Skip to content
Snippets Groups Projects
Commit 66402a8d authored by Pelle Koster's avatar Pelle Koster
Browse files

Use real sql backend in development to allow concurrent provisioning

parent 3c1ee4d2
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,8 @@ logging = true ...@@ -57,7 +57,8 @@ logging = true
[database] [database]
# Either "mysql", "postgres" or "sqlite3", it's your choice # Either "mysql", "postgres" or "sqlite3", it's your choice
type = sqlite3 type = postgres
host = postgres:5432
name = grafana name = grafana
user = grafana user = grafana
password = grafana password = grafana
......
version: '3'
services: services:
grafana: grafana:
restart: always depends_on:
image: grafana/grafana:11.2.2 postgres:
ports: condition: service_healthy
- 3000:3000 restart: unless-stopped
user: "427" image: grafana/grafana:11.2.2
volumes: ports:
- ./config:/etc/grafana/ - 3000:3000
environment: user: "427"
- GF_INSTALL_PLUGINS=grafana-simple-json-datasource volumes:
- ./config:/etc/grafana/
environment:
- GF_INSTALL_PLUGINS=grafana-simple-json-datasource
postgres:
image: "postgres:16"
restart: unless-stopped
environment:
- POSTGRES_USER=grafana
- POSTGRES_PASSWORD=grafana
- POSTGRES_DB=grafana
healthcheck:
test: ["CMD-SHELL", "pg_isready -U grafana -d grafana"]
interval: 2s
retries: 5
start_period: 30s
timeout: 10s
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment