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

update demo and remove sandbox instance #5

Merged
merged 1 commit into from
Dec 8, 2023
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: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
letsencrypt/acme.json
nohup.out
nohup.out

.idea/
34 changes: 6 additions & 28 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
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: |-
# Welcome to the Demo instance of Perses!

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
Expand All @@ -26,29 +27,6 @@ services:
- "traefik.http.routers.demo.rule=Host(`demo.perses.dev`)"
- "traefik.http.routers.demo.tls.certresolver=myresolver"

sandbox:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure about removing it? Seems not much people played with this sandbox instance so far, but I think it's good for people new to Perses to be able to try it in edit mode without having to install it by themselves.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With permissions, demo instance will not be readonly anymore, so sandbox can be removed

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:
Expand Down
Loading