diff --git a/docker-compose.yml b/docker-compose.yml index 022612c..bdbc241 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,6 +24,7 @@ services: restart: unless-stopped volumes: - ./prometheus:/etc/prometheus + - prometheus:/prometheus ports: - "9090:9090" @@ -47,6 +48,8 @@ services: restart: unless-stopped environment: - POSTGRES_PASSWORD=${PG_PASSWORD:-secretpassword} + volumes: + - postgresql:/var/lib/postgresql/data alertmanager-config: build: ./alertmanager-config @@ -78,8 +81,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