---
title: "Deploy Zammad Self-Hosted (Docker)"
description: "Step-by-step guide to self-hosting Zammad with Docker Compose. "
---
# Deploy Zammad
A web-based, open source helpdesk/customer support system with many features.
⭐ 5.0k stars
📜 AGPLv3
🔴 Advanced
⏱ ~20 minutes
## What You'll Get
A fully working Zammad instance running on your server. Your data stays on your hardware — no third-party access, no usage limits, no surprise invoices.
## Prerequisites
- A server with Docker and Docker Compose installed ([setup guide](/quick-start/choosing-a-server))
- A domain name pointed to your server (optional but recommended)
- Basic terminal access (SSH)
## The Config
Create a directory for Zammad and add this `docker-compose.yml`:
```yaml
# -------------------------------------------------------------------------
# 🚀 Created and distributed by The AltStack
# 🌍 https://thealtstack.com
# -------------------------------------------------------------------------
version: '3.8'
services:
zammad:
image: zammad/zammad-docker-compose:zammad-6.3.1-23
container_name: zammad
restart: unless-stopped
depends_on:
- zammad-postgresql
- zammad-elasticsearch
- zammad-redis
ports:
- "8080:8080"
zammad-elasticsearch:
image: bitnami/elasticsearch:8.12.2
container_name: zammad-elasticsearch
restart: unless-stopped
environment:
- discovery.type=single-node
zammad-postgresql:
image: postgres:15-alpine
container_name: zammad-postgresql
restart: unless-stopped
environment:
- POSTGRES_USER=zammad
- POSTGRES_PASSWORD=zammad
zammad-redis:
image: redis:7.2-alpine
container_name: zammad-redis
restart: unless-stopped
```
## Let's Ship It
```bash
# Create a directory
mkdir -p /opt/zammad && cd /opt/zammad
# Create the docker-compose.yml (paste the config above)
nano docker-compose.yml
# Pull images and start
docker compose up -d
# Watch the logs
docker compose logs -f
```
## Environment Variables
| Variable | Default | Required |
|---|---|---|
| `POSTGRES_USER` | `zammad` | No |
| `POSTGRES_PASSWORD` | `zammad` | No |
## Post-Deployment Checklist
- [ ] Service is accessible on the configured port
- [ ] Admin account created (if applicable)
- [ ] Reverse proxy configured ([Caddy guide](/concepts/reverse-proxies))
- [ ] SSL/HTTPS working
- [ ] Backup script set up ([backup guide](/concepts/backups))
- [ ] Uptime monitor added ([Uptime Kuma](/deploy/uptime-kuma))
## The "I Broke It" Section
**Container won't start?**
```bash
docker compose logs zammad | tail -50
```
**Port already in use?**
```bash
# Find what's using the port
lsof -i :PORT_NUMBER
```
**Need to start fresh?**
```bash
docker compose down -v # ⚠️ This deletes volumes/data!
docker compose up -d
```
## Going Further
- [Zammad on AltStack Directory](https://thealtstack.com/alternative-to/zammad)
- [Zammad Self-Hosted Guide](https://thealtstack.com/self-hosted/zammad)
- [Official Documentation](https://zammad.org)
- [GitHub Repository](https://github.com/zammad/zammad)