Skip to content

Commit

Permalink
mount data volume to keep data when updating the demo
Browse files Browse the repository at this point in the history
Signed-off-by: Augustin Husson <[email protected]>
  • Loading branch information
Nexucis committed Apr 22, 2024
1 parent 8d9d6cd commit 743477f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 2 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "*"
Expand All @@ -44,6 +41,7 @@ services:
volumes:
- ./provisioning:/etc/perses/provisioning
- ./secret:/etc/perses/config
- ./data:/perses
restart: unless-stopped
labels:
- "traefik.enable=true"
Expand Down

0 comments on commit 743477f

Please sign in to comment.