Skip to content

Monogramm/docker-penpot-backend

Repository files navigation

License: GPL v3 GitHub Workflow Status Docker Automated buid Docker Pulls

Penpot Backend Docker image

Docker image for Penpot Backend.

🚧 This image is still in beta!

What is Penpot

Penpot is The Open-Source prototyping tool.

https://www.penpot.app/

https://github.com/penpot/penpot

Supported tags

https://hub.docker.com/r/monogramm/docker-penpot-backend/

  • main-jdk-11-slim-buster main (images/main/openjdk-11-tools-deps-slim-buster/Dockerfile)
  • main-jdk-16-alpine (images/main/openjdk-16-tools-deps-alpine/Dockerfile)
  • develop-jdk-11-slim-buster develop (images/develop/openjdk-11-tools-deps-slim-buster/Dockerfile)
  • develop-jdk-16-alpine (images/develop/openjdk-16-tools-deps-alpine/Dockerfile)
  • 1.7.4-alpha-jdk-11-slim-buster 1.7-jdk-11-slim-buster jdk-11-slim-buster 1.7.4-alpha 1.7 latest (images/1.7/openjdk-11-tools-deps-slim-buster/Dockerfile)
  • 1.7.4-alpha-jdk-16-alpine 1.7-jdk-16-alpine jdk-16-alpine (images/1.7/openjdk-16-tools-deps-alpine/Dockerfile)
  • 1.6.5-alpha-jdk-11-slim-buster 1.6-jdk-11-slim-buster 1.6.5-alpha 1.6 (images/1.6/openjdk-11-tools-deps-slim-buster/Dockerfile)
  • 1.6.5-alpha-jdk-16-alpine 1.6-jdk-16-alpine (images/1.6/openjdk-16-tools-deps-alpine/Dockerfile)

How to run this image

You can use the example docker-compose.yml at the root of the project to start a local Penpot instance. Feel free to update the content of .env to your needs.

Persistent data

The Penpot installation and most data are stored in the database (assets are stored separately depending on configuration). The docker daemon will store that data within the docker directory /var/lib/docker/volumes/.... That means your data is saved even if the container crashes, is stopped or deleted.

To make your data persistent to upgrading and get access for backups is using named docker volume or mount a host folder. To achieve this you need one volume for your database container.

Database:

  • /var/lib/mysql MySQL / MariaDB Data
  • /var/lib/postgresql/data PostgreSQL Data
$ docker run -d \
    -v db:/var/lib/postgresql/data \
    postgresql

Auto configuration via environment variables

The backend supports dynamic configuration through environment variables. Checkout Penpot documentation to get the list and their behavior: https://github.com/penpot/penpot/blob/develop/docs/05-Configuration-Guide.md#backend

Questions / Issues

If you got any questions or problems using the image, please visit our Github Repository and write an issue.