diff --git a/docker-compose.yaml b/docker-compose.yaml index f6e5650..89de40f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -19,26 +19,7 @@ services: image: "docker.io/persesdev/perses:v0.47.0-rc0-distroless" ports: - "5000:8080" - command: "--config=/etc/perses/config/secret.yaml" - environment: - PERSES_DATABASE_FILE_EXTENSION: "json" - PERSES_DATABASE_FILE_FOLDER: "/perses" - PERSES_SECURITY_ENABLE_AUTH: true - PERSES_SECURITY_AUTHORIZATION_GUEST_PERMISSIONS_0_ACTIONS_0: "read" - PERSES_SECURITY_AUTHORIZATION_GUEST_PERMISSIONS_0_SCOPES_0: "*" - PERSES_SECURITY_AUTHORIZATION_GUEST_PERMISSIONS_1_ACTIONS_0: "create" - PERSES_SECURITY_AUTHORIZATION_GUEST_PERMISSIONS_1_SCOPES_0: "Project" - PERSES_SECURITY_AUTHENTICATION_PROVIDERS_ENABLE_NATIVE: true - PERSES_PROVISIONING_INTERVAL: "12h" - PERSES_PROVISIONING_FOLDERS_0: "/etc/perses/provisioning" - PERSES_FRONTEND_IMPORTANT_DASHBOARDS_0_PROJECT: "perses" - PERSES_FRONTEND_IMPORTANT_DASHBOARDS_0_DASHBOARD: "NodeExporterFull" - PERSES_FRONTEND_INFORMATION: |- - # Welcome to the Demo instance of Perses! - - This public demo instance is here to show you what Perses looks like - and what's possible to do with it. You can have a look at the example - dashboards, or create your own ones! + command: "--config=/etc/perses/config/config.yaml" volumes: - ./provisioning:/etc/perses/provisioning - ./secret:/etc/perses/config diff --git a/perses.yaml b/perses.yaml new file mode 100644 index 0000000..378d6cf --- /dev/null +++ b/perses.yaml @@ -0,0 +1,46 @@ +database: + file: + extension: "json" + folder: "/perses" + case_sensitive: false +security: + enable_auth: true + cookie: + secure: true + authorization: + guest_permissions: + - actions: + - read + scopes: + - "*" + - actions: + - create + scopes: + - Project +schemas: + panels_path: "/etc/perses/cue/schemas/panels" + queries_path: "/etc/perses/cue/schemas/queries" + datasources_path: "/etc/perses/cue/schemas/datasources" + variables_path: "/etc/perses/cue/schemas/variables" + interval: "5m" + + +provisioning: + interval: "12h" + folders: + - "/etc/perses/provisioning" + +frontend: + explorer: + enable: true + + important_dashboards: + - project: "perses" + dashboard: "NodeExporterFull" + + information: |- + # Welcome to the Demo instance of Perses! + + This public demo instance is here to show you what Perses looks like + and what's possible to do with it. You can have a look at the example + dashboards, or create your own ones!