Skip to content

patheard/aws-ecs-penpot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS ECS Penpot

Self-hosting Penpot in an AWS ECS Fargate cluster.

cd terragrunt/env/staging
terragrunt init
terragrunt apply --target=aws_ecs_cluster.penpot
terragrunt apply

Once the Terraform is finished, you'll need to push up the following images to the ECRs:

docker tag penpotapp/backend:latest $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/penpotapp/backend:latest
docker tag penpotapp/exporter:latest $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/penpotapp/exporter:latest

docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/penpotapp/backend:latest
docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/penpotapp/exporter:latest

You will also need to build your own version of the penpotapp/frontend image as the official image listens on port 80.

# Clone the official repo
git clone https://github.com/penpot/penpot.git
cd penpot

# Build the frontend bundle
./manage.sh build-frontend-bundle
./manage.sh build-frontend-docker-images

# Build and push the image
docker tag penpotapp/frontend:latest $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/penpot-frontend:latest
docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/penpotapp/frontend:latest

Issues

  1. There is currently a bug in Penpot that prevents the deletion of files and pages.
  2. The S3 signed object URLs expire before the browser cache of the 307 redirects. A cache clean fixes the issue.

About

Running Penpot in an AWS ECS Fargate cluster

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages