Docker Compose
The supplied Compose stack runs PostgreSQL, Plamenu, and Caddy. It requires Docker Engine, Compose, and a release image. Choose a version from Releases.
Prepare the deployment
Set PLAMENU_VERSION to the selected release number without the v prefix,
then copy that release’s examples:
# Set PLAMENU_VERSION to the selected release, without the v prefix.
version=${PLAMENU_VERSION:?Set PLAMENU_VERSION to the selected release first}
git clone --branch "v$version" --depth 1 \
https://codefloe.com/plamenu/plamenu.git
cd plamenu
cp deploy/.env.example deploy/.env
cp deploy/plamenu.toml.example deploy/plamenu.toml
chmod 600 deploy/.env deploy/plamenu.toml
Before starting:
- Put the release’s immutable
image@sha256:…reference indeploy/.env. - Replace the PostgreSQL password in
.envandplamenu.tomlwith the same random value. - Set the social and Webxdc domains.
- Set
encryption_secrettoopenssl rand -hex 32and escrow it separately from PostgreSQL and media backups. - If
172.30.0.0/24overlaps another network, change it in both files. - Configure SMTP before enabling registration or password reset.
Validate and start
docker compose --env-file deploy/.env -f deploy/compose.yml config
docker compose --env-file deploy/.env -f deploy/compose.yml up -d
docker compose --env-file deploy/.env -f deploy/compose.yml ps
curl -fsS https://social.example.com/ready
All three services should become healthy and the public /ready request must
succeed. Continue with the first administrator, using
the OCI command shown there.