Installation
Before you start, check the requirements: a Linux server with Docker, two hostnames pointing to it (one for the app, one for media storage) and, ideally, an SMTP server.
With the setup script
-
Download the setup script and run it:
curl -fsSLO https://github.com/PostPin-io/postpin/releases/latest/download/install.shbash install.shThe script creates a
postpindirectory (or the directory you pass as an argument), downloadscompose.ymland the example configuration of the latest release into it, and asks for:- the app URL, e.g.
https://postpin.example.com - the media URL, e.g.
https://media.example.com - your email address, which gets access to the admin area
- your SMTP server, port, user, password and sender address. Leave the server empty to skip this. PostPin runs without email, but nobody can verify their address or reset a password.
It generates the secrets, writes everything to
.envand asks whether to start PostPin. It never overwrites an existing.env. To see what it would write first, runbash install.sh --dry-run: it asks the same questions, prints the.envand starts nothing. - the app URL, e.g.
-
Set up your reverse proxy for both hostnames. The script prints which hostname goes to which port.
-
Open the app URL in your browser, sign up with the email address you entered and verify it. You can then reach the admin area at
/admin.
All data is stored in ./data next to compose.yml: the database in data/db, the job queue in
data/redis and all media in data/s3. Make sure the disk has room for your media. The other
settings, such as storage limits and legal links, are in .env, see
Configuration. After changing .env, run docker compose up -d again.
By hand
If you'd rather write .env yourself:
-
Download
compose.ymland the example configuration into a new directory:mkdir postpin && cd postpincurl -fsSLO https://github.com/PostPin-io/postpin/releases/latest/download/compose.ymlcurl -fsSL -o .env https://github.com/PostPin-io/postpin/releases/latest/download/env.example -
Edit
.envand replace everychange-me. Generate the secrets with:openssl rand -hex 32 # BETTER_AUTH_SECRETopenssl rand -hex 24 # POSTGRES_PASSWORDopenssl rand -hex 16 # S3_ACCESS_KEYopenssl rand -hex 32 # S3_SECRET_KEYSet
BETTER_AUTH_URLandS3_PUBLIC_ENDPOINTto the two public URLs, and fill in your SMTP server. Put your own email address intoADMIN_EMAILS. -
Start PostPin:
docker compose up -ddocker compose ps # wait until app, db, redis and rustfs are healthycurl http://localhost:3000/health # {"status":"ok"}The first start applies all database migrations, which takes a few seconds.
-
Set up your reverse proxy for both hostnames.
-
Open
BETTER_AUTH_URLin your browser, sign up with the address fromADMIN_EMAILSand verify it. You can then reach the admin area at/admin.
Next steps
- Create an organization and invite your team, see Getting started.
- In the plugins, turn off Use hosted PostPin server and
enter your
BETTER_AUTH_URLto connect them to your server.