# Self-hosted Penpot for the design-canvas "penpot" GUI skin: a real design app behind the same interface. # Trimmed from upstream docker/images/docker-compose.yaml (kept as docker-compose.upstream.yaml): no admin console, # MCP or mail catcher; telemetry off; access tokens on (the env drives the RPC API to set up and read episodes). # # PENPOT_SECRET_KEY=$(python3 -c "import secrets; print(secrets.token_urlsafe(64))") \ # docker compose -p dc-penpot up -d # then http://localhost:${PENPOT_PORT:-9011} # # Local / sandbox use only: secure cookies and email verification are off. x-flags: &penpot-flags PENPOT_FLAGS: >- disable-email-verification disable-secure-session-cookies enable-login-with-password enable-registration enable-access-tokens disable-onboarding disable-telemetry x-uri: &penpot-public-uri PENPOT_PUBLIC_URI: ${PENPOT_PUBLIC_URI:-http://localhost:9011} x-secret-key: &penpot-secret-key PENPOT_SECRET_KEY: ${PENPOT_SECRET_KEY:?set PENPOT_SECRET_KEY} x-database: &penpot-database PENPOT_DATABASE_URI: postgresql://penpot-postgres/penpot PENPOT_DATABASE_USERNAME: penpot PENPOT_DATABASE_PASSWORD: penpot networks: penpot: volumes: penpot_postgres_v15: penpot_assets: services: penpot-frontend: image: "penpotapp/frontend:${PENPOT_VERSION:-2.18}" restart: always ports: - ${PENPOT_PORT:-9011}:8080 volumes: - penpot_assets:/opt/data/assets depends_on: - penpot-backend - penpot-exporter networks: - penpot environment: << : [*penpot-flags, *penpot-public-uri] PENPOT_HTTP_SERVER_MAX_BODY_SIZE: 367001600 penpot-backend: image: "penpotapp/backend:${PENPOT_VERSION:-2.18}" restart: always volumes: - penpot_assets:/opt/data/assets depends_on: penpot-postgres: condition: service_healthy penpot-valkey: condition: service_healthy networks: - penpot environment: << : [*penpot-flags, *penpot-public-uri, *penpot-secret-key, *penpot-database] PENPOT_HTTP_SERVER_MAX_BODY_SIZE: 367001600 PENPOT_REDIS_URI: redis://penpot-valkey/0 PENPOT_OBJECTS_STORAGE_BACKEND: fs PENPOT_OBJECTS_STORAGE_FS_DIRECTORY: /opt/data/assets PENPOT_TELEMETRY_ENABLED: "false" # the JVM takes ~3 GB by default; a sandbox of 8 GB also runs the env's browser JAVA_OPTS: "-Xms256m -Xmx1200m" penpot-exporter: image: "penpotapp/exporter:${PENPOT_VERSION:-2.18}" restart: always depends_on: penpot-valkey: condition: service_healthy networks: - penpot environment: << : [*penpot-flags, *penpot-secret-key, *penpot-public-uri] PENPOT_INTERNAL_URI: http://penpot-frontend:8080 PENPOT_REDIS_URI: redis://penpot-valkey/0 penpot-postgres: image: "postgres:15" restart: always stop_signal: SIGINT healthcheck: test: ["CMD-SHELL", "pg_isready -U penpot"] interval: 2s timeout: 10s retries: 5 start_period: 2s volumes: - penpot_postgres_v15:/var/lib/postgresql/data networks: - penpot environment: - POSTGRES_INITDB_ARGS=--data-checksums - POSTGRES_DB=penpot - POSTGRES_USER=penpot - POSTGRES_PASSWORD=penpot penpot-valkey: image: valkey/valkey:8.1 restart: always healthcheck: test: ["CMD-SHELL", "valkey-cli ping | grep PONG"] interval: 1s timeout: 3s retries: 5 start_period: 3s networks: - penpot environment: - VALKEY_EXTRA_FLAGS=--maxmemory 128mb --maxmemory-policy volatile-lfu