Ghost Admin にアクセスする
URL: https://<server-ip>/ghost
初期設定を完了します。管理者ユーザーを作成し、サイトを構成します。
Docker Compose を介して Ghost を管理する
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