Dostęp do panelu admina Ghost
URL: https://<server-ip>/ghost
Przeprowadź wstępną konfigurację: utwórz konto administratora i skonfiguruj witrynę.
Zarządzaj Ghost przez 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
Poświadczenia i konfiguracja
Przechowywane w /root/ghost/.env oraz /root/ghost/docker-compose.yml.
Konfiguracja poczty e-mail
Usuń komentarz mail sekcja w /root/ghost/docker-compose.yml.
Uruchom ponownie kontenery:
cd /root/ghost; docker compose restart
Upewnij się, że dostęp SMTP jest przyznany.
Przykład z użyciem hasła aplikacji Gmail:
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
Domena i SSL
Skieruj domenę na adres IP serwera.
Aktualizuj /root/ghost/docker-compose.yml URL do domeny (url: https://your-domain).
Uruchom ponownie kontenery:
cd /root/ghost; docker compose restart
Dla Certbot SSL:
apt install -y certbot python3-certbot-nginx certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
Zastąp ścieżki SSL w /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;
Przeładuj Nginx:
nginx -t && systemctl reload nginx