From a531de45be50c39f9e60bb05293b325948fae9a2 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 10 May 2024 09:40:55 +0200 Subject: [PATCH] bump to v2 + add redis + penpot docker network --- README.md | 57 +++++++++++++++++++++++++++++++++++++++++++++- config.env | 3 ++- config.js | 4 ++++ docker-compose.yml | 12 ++++++---- 4 files changed, 70 insertions(+), 6 deletions(-) create mode 100644 config.js diff --git a/README.md b/README.md index 95a90a2..059032d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,58 @@ # PENPOT -## TO DO \ No newline at end of file +Penpot is an open source figma like website modeling + +## PRE REQUIS :paperclip: + +- Debian 12 +- Docker :whale: + +## CONFIG :wrench: + +#### config.env + +- Base: + +``` +PENPOT_PUBLIC_URI=https://penpot.domaine.fr +``` + +> Modifier pour l'URL de votre instance Penpot + +- Mail: + +``` +PENPOT_SMTP_DEFAULT_FROM=contact@mail.com +PENPOT_SMTP_DEFAULT_REPLY_TO=contact@mail.com +PENPOT_SMTP_HOST=mail.provider.net +PENPOT_SMTP_PORT=587 +PENPOT_SMTP_USERNAME=contact@mail.com +PENPOT_SMTP_PASSWORD=Pa55w0rd +PENPOT_SMTP_TLS=true +``` + +> Modifier ces infos pour permettre à Penpot d'envoyer des mails + +- Openid: + +``` +PENPOT_OIDC_BASE_URI=https://keycloak.domaine.fr/auth/realms/exemple/ +PENPOT_OIDC_CLIENT_ID=penpot +PENPOT_OIDC_CLIENT_SECRET= +PENPOT_OIDC_AUTH_URI:http://keycloak.domaine.fr/login/oauth/authorize +PENPOT_OIDC_TOKEN_URI:"http://keycloak.domaine.fr/login/oauth/access_token +PENPOT_OIDC_USER_URI:"http://keycloak.domaine.fr/login/oauth/userinfo +``` + +> Modifier les noms de domaines keycloak ainsi que le PENPOT_OIDC_CLIENT_SECRET + +## UTILISATION :rocket: + +``` +docker compose up -d +``` + +#### code source + +[penpot source code](https://github.com/penpot/penpot) +[License](https://github.com/penpot/penpot/blob/develop/LICENSE) \ No newline at end of file diff --git a/config.env b/config.env index df95518..dd1953e 100644 --- a/config.env +++ b/config.env @@ -47,7 +47,8 @@ PENPOT_FLAGS=disable-registration disable-demo-users enable-login-with-oidc # Comma separated list of allowed domains to register. Empty to allow all. -PENPOT_REGISTRATION_DOMAIN_WHITELIST=*.domaine.fr +# BUG IN 2.0 +# PENPOT_REGISTRATION_DOMAIN_WHITELIST=*.domaine.fr ## Authentication providers # Google diff --git a/config.js b/config.js new file mode 100644 index 0000000..e0be443 --- /dev/null +++ b/config.js @@ -0,0 +1,4 @@ +// Frontend configuration + +var penpotOIDCClientID = "penpot"; +var penpotFlags = "disable-demo-users disable-login enable-login-with-oidc"; \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 95d9a11..e276f56 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,8 @@ version: "3.5" services: penpot-frontend: - image: "penpotapp/frontend:latest" + image: "penpotapp/frontend:2.0.1" + container_name: penpot-front ports: - 9801:80 volumes: @@ -16,7 +17,8 @@ services: - penpot penpot-backend: - image: "penpotapp/backend:latest" + image: "penpotapp/backend:2.0.1" + container_name: penpot-back volumes: - /data/penpot/penpot_assets_data:/opt/data depends_on: @@ -28,7 +30,8 @@ services: - penpot penpot-exporter: - image: "penpotapp/exporter:latest" + image: "penpotapp/exporter:2.0.1" + container_name: exporter-frontend env_file: - config.env environment: @@ -39,7 +42,8 @@ services: - penpot penpot-postgres: - image: "postgres:13" + image: "postgres:15" + container_name: penpot-db restart: always stop_signal: SIGINT environment: