Доступ до Ghost Admin
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
Облікові дані та конфігурація
Зберігається в /root/ghost/.env і /root/ghost/docker-compose.yml.
Налаштування електронної пошти
Розкоментуйте mail розділ в /root/ghost/docker-compose.yml.
Перезапустити контейнери:
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
Домен і SSL
Наведіть свій домен на IP-адресу сервера.
оновлення /root/ghost/docker-compose.yml URL-адреса домену (url-адреса: https://your-domain).
Перезапустити контейнери:
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;
Перезавантажте Nginx:
nginx -t && systemctl reload nginx