Overall Assumptions
- Our current install has only been tested on Ubuntu 24.04 servers but it should work on any Linux based OS that can install and run Docker
- The main thing that mightn’t work is the migration script, if something fails there it’ll be some of the random bash commands
Contents
- New Installs
- Upgrades
- Migrating a Ghost-CLI Install
- Tinybird Integration (for analytics)
New Installs
Requirements
Steps
Ghost Install
- Clone the repo to your server in
/opt/ghost
: git clone [<https://github.com/TryGhost/ghost-docker.git>](<https://github.com/TryGhost/ghost-docker.git>) /opt/ghost
- Run
cd /opt/ghost
to change directory into the cloned repo
- Run
cp .env.example .env
and cp caddy/Caddyfile.example caddy/Caddyfile
to setup the example files
- Edit the
.env
file filling out the below values:
DOMAIN
: Set this to the domain you want your Ghost site to be on
- If you have a separate Admin Domain, fill out
ADMIN_DOMAIN
with your Admin domain
DATABASE_ROOT_PASSWORD
: generate a random password with openssl rand -hex 32
DATABASE_PASSWORD
: Generate a random password using openssl rand -hex 32
- Fill out the Email options at the bottom of the file