Ghost-Admin aufrufen
URL: https://<server-ip>/ghost
Ersteinrichtung abschließen: Admin-Benutzer anlegen und Website konfigurieren.
Ghost über Docker Compose verwalten
cd /root/ghost docker compose ps # View running containers docker compose up -d # Start Ghost docker compose down # Stop Ghost docker compose restart # Restart Ghost
Anmeldedaten & Konfiguration
Gespeichert in /root/ghost/.env und /root/ghost/docker-compose.yml.
E-Mail-Einrichtung
Kommentar entfernen mail Abschnitt in /root/ghost/docker-compose.yml.
Container neu starten:
cd /root/ghost; docker compose restart
Sicherstellen, dass SMTP-Zugriff gewährt ist.
Beispiel mit Gmail App-Passwort:
mail__transport: SMTP mail__options__host: smtp.gmail.com mail__options__port: 465 mail__options__secure: true mail__options__auth__user: [email protected] mail__options__auth__pass: your-app-password
Domäne & SSL
Domain auf die Server-IP zeigen lassen.
Aktualisierung /root/ghost/docker-compose.yml URL auf Domain setzen (url: https://your-domain).
Container neu starten:
cd /root/ghost; docker compose restart
Für Certbot SSL:
apt install -y certbot python3-certbot-nginx certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
SSL-Pfade ersetzen in /etc/nginx/sites-enabled/ghost.
# Example ssl_certificate /etc/letsencrypt/live/your-domain/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/your-domain/privkey.pem;
Nginx neu laden:
nginx -t && systemctl reload nginx