Greifen Sie auf Ghost Admin zu
URL: https://<server-ip>/ghost
Schließen Sie die Ersteinrichtung ab: Erstelle einen Admin-Benutzer und konfigurieren Sie die Site.
Verwalten Sie Ghost über Docker Compose
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
Anmeldeinformationen und Konfiguration
Gespeichert in /root/ghost/.env und /root/ghost/docker-compose.yml.
E-Mail-Setup
Kommentar entfernen mail Abschnitt in /root/ghost/docker-compose.yml.
Container neu starten:
cd /root/ghost; docker compose restart
Stellen Sie sicher, dass der SMTP-Zugriff gewährt wird.
Beispiel für die Verwendung eines Gmail-App-Passworts:
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 und SSL
Richten Sie Ihre Domain auf die Server-IP.
Aktualisieren /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>
Ersetzen Sie SSL-Pfade 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