From 41dd0f49e9317b30e5fc8b2186b8aa8b408afc00 Mon Sep 17 00:00:00 2001 From: Augustin Husson Date: Fri, 8 Dec 2023 14:34:07 +0100 Subject: [PATCH] update demo and remove sandbox instance (#5) Signed-off-by: Augustin Husson --- .gitignore | 4 +++- docker-compose.yaml | 34 ++++++---------------------------- 2 files changed, 9 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index af901d6..bfb3474 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ letsencrypt/acme.json -nohup.out \ No newline at end of file +nohup.out + +.idea/ \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 18beeb8..f8b0d3e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,12 +1,16 @@ version: '3.9' services: demo: - image: "docker.io/persesdev/perses:v0.40.1" + image: "docker.io/persesdev/perses:v0.42.1" ports: - "5000:8080" environment: PERSES_DATABASE_FILE_EXTENSION: "json" - PERSES_READONLY: true + 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_IMPORTANT_DASHBOARDS_0_PROJECT: "perses" PERSES_IMPORTANT_DASHBOARDS_0_DASHBOARD: "NodeExporterFull" PERSES_INFORMATION: |- @@ -14,9 +18,6 @@ services: This public demo instance is here to give you of what Perses looks like, with some example dashboards & more. - - This instance is readonly. If you wish to play with the edit mode, - go to the [Sandbox instance](https://sandbox.perses.dev/) instead. volumes: - ./local_db:/perses restart: unless-stopped @@ -26,29 +27,6 @@ services: - "traefik.http.routers.demo.rule=Host(`demo.perses.dev`)" - "traefik.http.routers.demo.tls.certresolver=myresolver" - sandbox: - image: "docker.io/persesdev/perses:v0.40.1" - ports: - - "5001:8080" - environment: - PERSES_DATABASE_FILE_EXTENSION: "json" - PERSES_READONLY: false - PERSES_INFORMATION: |- - # Welcome to the Sandbox instance of Perses! - - This public sandbox instance is here to let you play with Perses. - Create your own projects, dashboards & more! - - If you just want to have a showcase of what's possible to create - in Perses, please go to the [Demo instance](https://demo.perses.dev/) - instead. - restart: unless-stopped - labels: - - "traefik.enable=true" - # The domain the service will respond to - - "traefik.http.routers.sandbox.rule=Host(`sandbox.perses.dev`)" - - "traefik.http.routers.sandbox.tls.certresolver=myresolver" - traefik: image: "docker.io/traefik:v2.9.10" command: