Ghost Yönetici Paneline Eriş
URL: https://<server-ip>/ghost
İlk kurulumu tamamlayın: yönetici kullanıcısı oluşturun ve siteyi yapılandırın.
Docker Compose ile Ghost'yi Yönet
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
Kimlik Bilgileri ve Yapılandırma
/root/ghost/.env ve /root/ghost/docker-compose.yml dosyalarında saklanır.
E-posta Kurulumu
Açıklama işaretini kaldır mail bölüm içinde /root/ghost/docker-compose.yml.
Konteynerleri yeniden başlat:
cd /root/ghost; docker compose restart
SMTP erişiminin verildiğinden emin olun.
Gmail Uygulama Parolası ile örnek kullanım:
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
Alan Adı ve SSL
Alan adınızı sunucu IP'sine yönlendirin.
Güncelle /root/ghost/docker-compose.yml URL alan adına (url: https://your-domain).
Konteynerleri yeniden başlat:
cd /root/ghost; docker compose restart
Certbot SSL için:
apt install -y certbot python3-certbot-nginx certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
SSL yollarını şurada değiştirin: /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'i yeniden yükle:
nginx -t && systemctl reload nginx