# Self-host Postiz

> Schedules and publishes posts across social platforms from one calendar, with basic analytics.

- Page: https://levelrail.com/templates/postiz/
- JSON: https://levelrail.com/templates/postiz.json
- Category: Communication
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/gitroomhq/postiz-app
- Upstream docs: https://docs.postiz.com/installation/docker

## Requirements
- Memory: about 1 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 17-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 17-alpine | none | postiz_db_data -> /var/lib/postgresql/data |
| postiz | ghcr.io/gitroomhq/postiz-app | v2.23.0 | 5000 | postiz_uploads -> /config/uploads |
| redis | redis | 7-alpine | none | postiz_redis_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| postiz | DATABASE_URL | generated |
| postiz | FRONTEND_URL | preset |
| postiz | IS_GENERAL | preset |
| postiz | JWT_SECRET | generated |
| postiz | MAIN_URL | preset |
| postiz | NEXT_PUBLIC_BACKEND_URL | preset |
| postiz | REDIS_URL | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy postiz --name my-postiz
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/postiz/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Postiz on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id postiz for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:17-alpine, ghcr.io/gitroomhq/postiz-app:v2.23.0, redis:7-alpine is what you deploy there.

Self-host Postiz, Postiz docker compose file, deploy Postiz on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
