Skip to content

About

An easy way to deploy a secure cloud server running Plone 6 with Volto on Linode, AWS, DigitalOcean or Hetzner

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

482 Commits

Folders and files

Repository files navigation

Plone in a Box™

Your own Plone 6 website on a cloud server, without needing a command line.

Plone in a Box is for people who want a Plone site of their own but aren't system administrators. There's nothing to install on your computer.

Start here: collective.github.io/plone-in-a-box, the easiest way in three steps, then the choices that suit what your site is for. For a short overview, see the slides.

Try Plone with an add-on: collective.github.io/plone-in-a-box/try, with everything filled in for Volto Light Theme, Plone Aurora or Juizi Dashboard, and a demo login to share. Add-on authors can add theirs.

Get started

  1. Pick a provider: Linode, DigitalOcean, AWS or Hetzner.
  2. Choose a password for your site's admin account.
  3. Click Create. About 10 minutes later, your server's address shows your new Plone site.

No need to decide everything now: your domain name, email, offsite backups, notifications, logs, graphs, add-ons and a theme can all be added once your site is running.

You'll need an account with the provider and a way to pay.

Which one? If you don't already use one of these, choose Linode: it has the simplest setup (a form with labelled fields, nothing to paste) and among the lowest prices for a small site. Choose DigitalOcean if you already have an account there; it costs about the same. Choose AWS if your organization already runs things there; its Launch Stack button opens a similar form, but a small site costs noticeably more. Choose Hetzner if you prefer a European provider; it costs about the same, and setup works like DigitalOcean's. The setup guide compares them.

A 1 GB server is enough for a small site on Linode, DigitalOcean and Hetzner (choose 2 GB or more for a busier one); on AWS, use at least t3.small (2 GB).

The setup guide has step-by-step instructions for each provider.

Linode (Akamai)

  1. Log in to Cloud Manager, open the Plone in a Box StackScript (by nguyen-plone), and click Deploy New Linode.
  2. Fill in the form. Set the Plone admin password (at least 12 characters); the domain name, time zone, versions, backend add-ons and a theme are optional.
  3. Choose Ubuntu 26.04 LTS (24.04 also works), a region and a plan (a 1 GB Nanode is enough for a small site), set a root password, and pick No firewall if Cloud Manager asks for one (the server has its own).
  4. Click Create Linode, then open the Linode's IP address in your browser.

Details: setup guide, Linode.

DigitalOcean

  1. In the DigitalOcean control panel, Create → Droplets: choose Ubuntu 26.04 (LTS) x64 and a size (1 GB is enough for a small site).
  2. Under Additional Options, choose Startup scripts (free) and paste these three lines into the box. Replace CHANGE-ME with your admin password (at least 12 characters), keeping the quotes:
    #!/bin/bash
    export ADMIN_PASSWORD='CHANGE-ME'
    curl -fsSL --retry 10 --retry-all-errors -o /root/plone-in-a-box.sh https://raw.githubusercontent.com/tkimnguyen/plone-in-a-box/2.28/src/StackScript && bash /root/plone-in-a-box.sh
    
  3. Create the Droplet, then open its IP address in your browser.

For more settings (a domain for HTTPS, the time zone, versions, add-ons, a theme), paste src/user-data.sh instead.

Details: setup guide, DigitalOcean.

Amazon AWS

  1. Sign in to the AWS console, then click Launch Stack
  2. Fill in the form: set the Plone admin password (at least 12 characters); everything else is optional.
  3. Click Create stack. When it shows CREATE_COMPLETE (a minute or two), open the SiteURL on its Outputs tab.

Details: setup guide, AWS console.

Hetzner

  1. In the Hetzner Console, open a project and click Create server: choose a Regular Performance plan (CPX02, 1 GB, is enough for a small site; CPX11 in the US), a location and Ubuntu 26.04.
  2. Under Cloud config, paste these three lines into the "Cloud-init configuration" box. Replace CHANGE-ME with your admin password (at least 12 characters), keeping the quotes:
    #!/bin/bash
    export ADMIN_PASSWORD='CHANGE-ME'
    curl -fsSL --retry 10 --retry-all-errors -o /root/plone-in-a-box.sh https://raw.githubusercontent.com/tkimnguyen/plone-in-a-box/2.28/src/StackScript && bash /root/plone-in-a-box.sh
    
  3. Click Create & Buy now, then open the server's IPv4 address in your browser.

For more settings (a domain for HTTPS, the time zone, versions, add-ons, a theme), paste src/user-data.sh instead.

Details: setup guide, Hetzner.

What you get

Each box is a single Ubuntu 26.04 LTS server running the official Plone Docker images (the Plone backend, the Volto front end and PostgreSQL) behind nginx.

Setting up

  • A form on your provider's website (Linode, DigitalOcean, AWS or Hetzner), or Terraform if you prefer automation. On DigitalOcean and Hetzner, Terraform picks a region that offers the server size you chose.
  • The admin password you choose, or a randomly generated one (there's no admin:admin).
  • A page that shows setup progress while you wait, and turns into your site in about 10 minutes.
  • The site's language and time zone, and whether it starts with Plone's welcome page or empty.
  • A control panel (preview): how your site is doing, in plain words, on your phone or computer, with buttons to back up now, run the restore test and more. Tick Control panel when you create the server, or turn it on later.
  • Ask your AI assistant (preview) how your site is doing: Claude and other assistants can check on it through your SSH connection (MCP).
  • Plone 6.2 with Volto 19 by default; both are configurable (for the previous release line, use Plone 6.1 with Volto 18).

Security

  • Only the website (HTTP and HTTPS) and SSH are reachable from the internet, and the control panel once you turn it on.
  • HTTPS from Let's Encrypt for every site: for your domain name, now or later, or without one, for the server's IP address (https://<ip>), renewed automatically.
  • Standard security headers on every page, and nginx doesn't reveal its version.
  • Ubuntu installs its security updates by itself.
  • Plone security announcements reach you within a day, often a week before the fix is out, and a released fix installs the same day.
  • Servers made with Terraform or AWS's Launch Stack button are protected from being deleted or rebuilt by mistake.

Updates

  • Every week, Plone, Volto and PostgreSQL patch releases install automatically, after a database backup, and are undone if the site doesn't come back. You're told when a new Plone version is out to move to yourself. See Updates; a server set up before 2.12 gets them with one command.

Notices

  • Update reports, security announcements and backup problems go to your phone (ntfy), a team chat (Slack, Discord, Google Chat, Mattermost or Microsoft Teams), by email (once email is set up), and to the server's login message.

Email

  • Password resets, new-user emails, form submissions and update reports, sent through an email relay service (SMTP2GO, Brevo, Amazon SES and others) with your own domain. Fill in its settings when creating the server (setup sends a test email), or later in Site Setup → Mail; without them, the site can't send email. See Sending email, which compares the services.

Backups

  • A database backup every night (the whole site, files and images included), and a weekly pack so the database doesn't grow forever. Your provider's server backups can be turned on too. See Backups.
  • Optional encrypted copies of each night's backup in S3-compatible storage (Cloudflare R2, AWS S3, Backblaze B2, DigitalOcean Spaces, Hetzner Object Storage), with sudo plone-offsite setup.
  • sudo plone-restore puts a backup back, and moves a site to a new server.

Customizing

  • Backend add-ons such as collective.easyform, installed when deploying or later.
  • Ready-made frontend images such as Volto Light Theme (ghcr.io/collective/plone-in-a-box-frontend:19-vlt), or your own.
  • A backend image: a Plone distribution such as kitconcept's intranet, or your own project, for example one made with cookieplone.
  • A demo login, with the roles and password you choose, for letting others try the site.

For add-on authors

Questions, ideas, or stuck? Come and talk in the #plone-in-a-box channel on the Plone Discord. For news of new releases and changes to make, by email, join box@plone.org: a few emails a month, announcements only.

Once your site is running

  • Log in as admin with the password you chose. For everyday editing, create personal accounts in Site Setup → Users and Groups.
  • Forgot the password, or didn't set one? Your provider has a console that runs in the browser: Linode's Launch LISH Console, DigitalOcean's Access → Launch Droplet Console, AWS's Connect → EC2 Instance Connect, or Hetzner's Console (the >_ button on the server's page). Open it and type one command: sudo cat /root/plone-credentials.txt shows a generated password, and sudo plone-reset-admin-password sets a new one.
  • Using your own domain name: point the domain at the server's address before creating it, and fill in the domain and email settings to get HTTPS automatically. Adding a domain to an existing server takes a few commands; see Adding HTTPS later.
  • Removing the site: delete the server in your provider's control panel. This deletes the site's content too. Servers made with Terraform or the Launch Stack button are protected, so turn that off first; see Removing the box.

The setup guide covers all of this step by step, plus upgrades and troubleshooting.

For add-on authors: a "Try It" button

Let people try your Plone add-on in a real site of their own, in about 10 minutes, without installing anything: buttons in your add-on's README set up Plone in a Box on their cloud account, with your add-on installed and a demo login to share. Juizi Dashboard does this:

Launch Stack on AWS Deploy on Linode

What it takes:

  1. One pull request that adds your add-on to Plone in a Box's catalog, addons.yml: about ten lines naming your npm and Python packages, or the images you publish yourself (for a Plone distribution, for example), the roles a demo login needs to try it (for example Editor), and what to do once logged in.
  2. One button in your README, linking to the Try It page Plone in a Box then publishes for your add-on, at https://collective.github.io/plone-in-a-box/try/<your add-on>/. The page has the AWS, Linode, DigitalOcean and Hetzner steps, and follows Plone in a Box's releases by itself.

The "Try It" guide has the details, and how to make the buttons yourself instead. See the Try It pages.

For developers and system administrators

AWS, DigitalOcean and Hetzner can also be set up with Terraform from src/aws/, src/digitalocean/ and src/hetzner/. They run the same provisioning script as the console routes, src/StackScript, which is also the Linode StackScript.

cd src/aws            # or src/digitalocean with DIGITALOCEAN_TOKEN set, or src/hetzner with HCLOUD_TOKEN set
terraform init
terraform apply -var 'ssh_public_key_path=~/.ssh/id_ed25519.pub' -var 'admin_password=...'

See the variables at the top of each main.tf for region, size, domain, versions and backend add-ons, and the setup guide for account setup. Pass the same -var options to terraform destroy, or put them in terraform.tfvars. If Terraform fails with lookup sts.<region>.amazonaws.com: no such host on a Mac, turn off iCloud Private Relay and retry.

On the server (ssh root@<server>, or ubuntu@<server> and sudo -i on AWS):

  • setup is logged to /var/log/plone-in-a-box.log, and a generated admin password is saved in /root/plone-credentials.txt
  • the stack lives in /opt/plone; manage it with docker compose --project-directory /opt/plone ps|logs|pull|up -d
  • to add a domain later, point its DNS at the server and run certbot --nginx -d <domain>

Releases

Development and releases happen at tkimnguyen/plone-in-a-box, which is mirrored to collective/plone-in-a-box after each release. Release notes are on the Releases page, and CHANGES.md lists the changes in every version. Both repositories have the same version tags. New releases are announced in #plone-in-a-box on the Plone Discord, and by email to box@plone.org, an announcements-only list (join on its page, or send an email to box+subscribe@plone.org).

Maintainers: see RELEASING.md for testing (including automated test deploys), releasing and syncing to collective/plone-in-a-box.

Background

The original step-by-step guide from the 2020 Plone Conference (PDF, markdown) describes the Plone 5.2 version; the account setup steps still apply, but the port 8080 and admin/admin instructions no longer do.

See the accompanying 2020 Plone Conference presentation, Your Plone [Intranet] in a Box™:

About

An easy way to deploy a secure cloud server running Plone 6 with Volto on Linode, AWS, DigitalOcean or Hetzner

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages