Ghost 관리자 접속
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
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