Add Penpot

This commit is contained in:
whitney 2025-12-24 15:43:14 -08:00
parent eef4e52254
commit dd82a86e3a
4 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,26 @@
PENPOT_PUBLIC_URI=https://penpot.example.com
POSTGRES_DB=penpot
POSTGRES_USER=penpot
POSTGRES_PASSWORD=secure-password
PENPOT_DATABASE_URI=postgresql://penpot-postgres/penpot
PENPOT_DATABASE_USERNAME=penpot
# Must match POSTGRES_PASSWORD
PENPOT_DATABASE_PASSWORD=secure-password
PENPOT_REDIS_URI=redis://penpot-redis:6379
PENPOT_SECRET_KEY=secret-key
PENPOT_ASSETS_STORAGE_BACKEND=assets
PENPOT_STORAGE_ASSETS_DIRECTORY=/opt/data/assets
PENPOT_REGISTRATION_ENABLED=true
# Either
PENPOT_FLAGS=enable-registration enable-login-with-password disable-email-verification enable-prepl-server
# Or
PENPOT_FLAGS=enable-login-with-password
PENPOT_REGISTRATION_ENABLED=false

1
productivity/penpot/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

View File

@ -0,0 +1,18 @@
# Penpot
Open source Figma.
## First Time User Creation
Temporarily enable registration via manual methods:
```env
PENPOT_FLAGS=enable-registration enable-login-with-password disable-email-verification enable-prepl-server
```
and comment out `PENPOT_REGISTRATION_ENABLED=false`
Create new user either through UI or through command line:
```bash
docker exec -it penpot-penpot-backend-1 python3 manage.py create-profile
```
Reinstate old flags:
```env
PENPOT_FLAGS=enable-login-with-password
```
and reinstate `PENPOT_REGISTRATION_ENABLED`.

View File

@ -0,0 +1,54 @@
networks:
traefik:
external: true
penpot:
driver: bridge
services:
penpot-frontend:
image: penpotapp/frontend:latest
networks:
- traefik
- penpot
env_file: .env
labels:
- "traefik.enable=true"
- "traefik.http.routers.penpot.rule=Host(`blueprint.whitney.rip`)"
- "traefik.http.routers.penpot.entrypoints=websecure"
- "traefik.http.routers.penpot.tls=true"
- "traefik.http.routers.penpot.tls.certresolver=letsencrypt"
- "traefik.http.services.penpot.loadbalancer.server.port=8080"
depends_on:
- penpot-backend
penpot-backend:
image: penpotapp/backend:latest
networks:
- penpot
env_file: .env
depends_on:
- penpot-postgres
- penpot-redis
penpot-exporter:
image: penpotapp/exporter:latest
networks:
- penpot
env_file: .env
depends_on:
- penpot-postgres
- penpot-redis
penpot-postgres:
image: postgres:15
networks:
- penpot
volumes:
- /pwspool/software/penpot/data:/var/lib/postgresql/data
env_file: .env
penpot-redis:
image: redis:7
networks:
- penpot