PLANKA

A Kanban-style project management tool for everyone

Truy cập

Mở trình duyệt của bạn và truy cập: https://<SERVER_IP>

A browser SSL warning is expected due to the self-signed certificate.

Create an admin user by running the following command on the server:

cd /opt/planka && docker compose run --rm planka npm run db:create-admin-user

Log in using the newly created admin account.

Các tập tin và thư mục quan trọng

  • Thư mục cài đặt: /opt/planka
  • Tệp Docker Compose: /opt/planka/docker-compose.yml
  • App data volume: /var/lib/docker/volumes/planka_data/_data
  • Dung lượng dữ liệu PostgreSQL: /var/lib/docker/volumes/planka_db-data/_data
  • Custom terms directory: /opt/planka/terms
  • Cấu hình Nginx: /etc/nginx/sites-available/planka
  • Enabled site: /etc/nginx/sites-enabled/planka
  • Chứng chỉ SSL: /etc/nginx/ssl/fullchain.pem, /etc/nginx/ssl/privkey.pem

Common Management Commands

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

Kích hoạt SSL với tên miền

1. Trỏ tên miền của bạn đến địa chỉ IP của máy chủ.

2. Edit docker-compose.yml to set your domain as BASE_URL: BASE_URL=https://yourdomain.com

3. Restart PLANKA services:

cd /opt/planka/
docker compose up -d

4. Chỉnh sửa cấu hình Nginx và thay thế cả hai server_name <IP>; với tên miền của bạn (<yourdomain.com>) cho cả khối HTTP (cổng 80) và HTTPS (cổng 443):

vim /etc/nginx/sites-available/planka

5. Cài đặt Certbot:

apt install -y certbot python3-certbot-nginx

6. Chạy lệnh sau để tạo chứng chỉ Let's Encrypt hợp lệ:

certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com

7. Replace SSL paths in Nginx config:

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. Khởi động lại Nginx để áp dụng các thay đổi:

systemctl restart nginx

9. Mở trình duyệt của bạn và truy cập: https://yourdomain.com

Thông tin ứng dụng