Ghost Admin'e erişin
URL'si: https://<server-ip>/ghost
İlk kurulumu tamamlayın: yönetici kullanıcı oluşturun ve siteyi yapılandırın.
Ghost'u Docker Compose aracılığıyla yönetin
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'de saklanır.
E-posta Kurulumu
Yorumu kaldır mail bölüm /root/ghost/docker-compose.yml.
Kapsayıcıları yeniden başlatın:
cd /root/ghost; docker compose restart
SMTP erişiminin verildiğinden emin olun.
Gmail Uygulama Şifresini 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
Alan adı ve SSL
Alan adınızı sunucu IP'sine yönlendirin.
Güncelleme /root/ghost/docker-compose.yml Etki alanının URL'si (url: https://alanınız).
Kapsayıcıları yeniden başlatın:
cd /root/ghost; docker compose restart
Certbot SSL'si 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.
# Example ssl_certificate /etc/letsencrypt/live/your-domain/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/your-domain/privkey.pem;
Nginx'i yeniden yükleyin:
nginx -t && systemctl reload nginx