Zugriff auf Ghost Admin
URL: https://<server-ip>/ghost
Erste Einrichtung abschließen: Admin-Benutzer erstellen und Website konfigurieren.
Verwalten Sie Ghost über Docker Compose
cd /root/ghost docker compose ps # Laufende Container anzeigen docker compose up -d # Ghost starten docker compose down # Ghost stoppen docker compose restart # Ghost neu starten
Anmeldedaten und 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
Stellen Sie sicher, dass SMTP-Zugriff gewährt wird.
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
Domain & SSL
Richten Sie Ihre Domain auf die Server-IP aus.
Aktualisierung /root/ghost/docker-compose.yml URL zur Domain (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 in ersetzen /etc/nginx/sites-enabled/ghost.
# Beispiel 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 nginx neu laden