diff --git a/docker-compose.yml b/docker-compose.yml index a108a6a..541a93f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ services: image: prom/prometheus volumes: - ./prometheus:/etc/prometheus + - prometheus:/prometheus ports: - "9090:9090" @@ -46,6 +47,8 @@ services: restart: unless-stopped environment: - POSTGRES_PASSWORD=${PG_PASSWORD:-secretpassword} + volumes: + - postgresql:/var/lib/postgresql/data alertmanager-config: build: ./alertmanager-config @@ -77,8 +80,13 @@ services: volumes: - ./grafana/datasources:/etc/grafana/provisioning/datasources - ./grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml - - ./grafana/dashboards:/var/lib/grafana/dashboards + - ./grafana/dashboards:/etc/grafana/dashboards - ./grafana/grafana.ini:/etc/grafana/grafana.ini - ./grafana/icons:/usr/share/grafana/public/img/icons/satisfactory + - grafana:/var/lib/grafana ports: - "3000:3000" +volumes: + grafana: + postgresql: + prometheus: diff --git a/grafana/dashboards.yml b/grafana/dashboards.yml index 4ced6ff..75648ef 100644 --- a/grafana/dashboards.yml +++ b/grafana/dashboards.yml @@ -5,5 +5,5 @@ providers: type: file allowUiUpdates: true options: - path: /var/lib/grafana/dashboards + path: /etc/grafana/dashboards foldersFromFilesStructure: true