접근
브라우저를 열고 아래 주소로 이동하세요: https://<SERVER_IP>
자체 서명 인증서로 인해 브라우저에서 SSL 경고가 표시될 수 있습니다.
서버에서 다음 명령어를 실행하여 관리자 계정을 생성하세요:
cd /opt/planka && docker compose run --rm planka npm run db:create-admin-user
새로 생성된 관리자 계정으로 로그인하세요.
주요 파일 및 디렉토리
- 설치 디렉토리:
/opt/planka - Docker Compose 파일:
/opt/planka/docker-compose.yml - 앱 데이터 볼륨:
/var/lib/docker/volumes/planka_data/_data - PostgreSQL 데이터 볼륨:
/var/lib/docker/volumes/planka_db-data/_data - 사용자 정의 약관 디렉토리:
/opt/planka/terms - Nginx 설정:
/etc/nginx/sites-available/planka - 사이트 활성화됨:
/etc/nginx/sites-enabled/planka - SSL 인증서:
/etc/nginx/ssl/fullchain.pem,/etc/nginx/ssl/privkey.pem
주요 관리 명령어
cd /opt/planka
# Check running containers
docker ps
# Logs (live)
docker compose logs -f
# Restart services
docker compose restart
# Stop stack
docker compose down
# Start stack
docker compose up -d
도메인으로 SSL 활성화하기
1. 도메인을 서버 IP로 연결합니다.
2. 편집 docker-compose.yml 도메인을 다음으로 설정하려면 BASE_URL: BASE_URL=https://yourdomain.com
3. PLANKA 서비스 재시작:
cd /opt/planka/
docker compose up -d
4. Nginx 설정 파일을 열고 다음 두 항목을 모두 교체하세요 server_name <IP>; 을 실제 도메인으로 교체합니다 (<yourdomain.com>) HTTP (포트 80) 및 HTTPS (포트 443) 블록 모두에 적용합니다:
vim /etc/nginx/sites-available/planka
5. Certbot 설치:
apt install -y certbot python3-certbot-nginx
6. 다음 명령어를 실행하여 유효한 Let's Encrypt 인증서를 발급받으세요:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
7. Nginx 설정 파일에서 SSL 경로를 교체하세요:
vim /etc/nginx/sites-available/planka
# Before:
# ssl_certificate /etc/nginx/ssl/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
8. 변경 사항을 적용하려면 Nginx를 재시작합니다:
systemctl restart nginx
9. 브라우저를 열고 다음 주소로 접속하세요: https://yourdomain.com