Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mount data volume to keep data when updating the demo #25

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading