Відкрити адмінпанель Ghost
URL: https://<server-ip>/ghost
Виконайте початкове налаштування: створіть адміністратора та налаштуйте сайт.
Керування Ghost через 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
Credentials & Configuration
Зберігається у /root/ghost/.env та /root/ghost/docker-compose.yml.
Email Setup
Uncomment mail section in /root/ghost/docker-compose.yml.
Restart containers:
cd /root/ghost; docker compose restart
Переконайтеся, що доступ SMTP надано.
Приклад з паролем додатка 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
Domain & SSL
Вкажіть ваш домен на IP-адресу сервера.
Update /root/ghost/docker-compose.yml URL до домену (url: https://your-domain).
Restart containers:
cd /root/ghost; docker compose restart
Для Certbot SSL:
apt install -y certbot python3-certbot-nginx certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
Замініть шляхи SSL у /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;
Reload Nginx:
nginx -t && systemctl reload nginx