From a9fe30a5e8c9245e12a889256dd3c50319ac75b4 Mon Sep 17 00:00:00 2001 From: Augustin Husson Date: Mon, 22 Apr 2024 16:04:21 +0200 Subject: [PATCH] mount data volume to keep data when updating the demo (#25) Signed-off-by: Augustin Husson --- .gitignore | 4 ++++ docker-compose.yaml | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 6ef9028..7da3856 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,10 @@ letsencrypt/acme.json nohup.out .idea/ +scripts/repos/ +# data is the folder where the perses database is stored +data/ + # Created by https://www.toptal.com/developers/gitignore/api/hugo,node,visualstudiocode,macos,linux,windows # Edit at https://www.toptal.com/developers/gitignore?templates=hugo,node,visualstudiocode,macos,linux,windows diff --git a/docker-compose.yaml b/docker-compose.yaml index ae23ee7..ecf164f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -22,10 +22,7 @@ services: command: "--config=/etc/perses/config/secret.yaml" environment: PERSES_DATABASE_FILE_EXTENSION: "json" - PERSES_SCHEMAS_PANELS_PATH: "/etc/perses/cue/schemas/panels" - PERSES_SCHEMAS_QUERIES_PATH: "/etc/perses/cue/schemas/queries" - PERSES_SCHEMAS_DATASOURCES_PATH: "/etc/perses/cue/schemas/datasources" - PERSES_SCHEMAS_VARIABLES_PATH: "/etc/perses/cue/schemas/variables" + 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: "*" @@ -44,6 +41,7 @@ services: volumes: - ./provisioning:/etc/perses/provisioning - ./secret:/etc/perses/config + - ./data:/perses restart: unless-stopped labels: - "traefik.enable=true"