Ghost Yöneticiye Erişin
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'u yönetme
cd /root/ghost docker compose ps # Çalışan konteynerleri görüntüle docker compose up -d # Ghost'u başlat docker compose down # Ghost'u durdur docker compose restart # Ghost'u yeniden başlat
Kimlik Bilgileri ve Yapılandırma
/root/ghost/.env ve /root/ghost/docker-compose.yml dosyalarında saklanır.
E-posta Kurulumu
Yorumları kaldır mail bölüm /root/ghost/docker-compose.yml.
Konteynerleri yeniden başlat:
cd /root/ghost; docker compose yeniden başlat
SMTP erişiminin sağlandığından emin olun.
Gmail Uygulama Şifresi kullanma örneği:
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
Etki Alanı ve SSL
Etki alanınızı sunucu IP adresine yönlendirin.
Güncelleme /root/ghost/docker-compose.yml Etki alanına URL (url: https://your-domain).
Konteynerleri yeniden başlat:
cd /root/ghost; docker compose yeniden başlat
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ı değiştirin /etc/nginx/sites-enabled/ghost.
# Örnek 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 nginx'i yeniden yükle