PLANKA

A Kanban-style project management tool for everyone

アクセス

ブラウザを開いて、次のURLにアクセスしてください: 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.

重要なファイルとディレクトリ

  • インストール先ディレクトリ: /opt/planka
  • Docker Compose ファイル: /opt/planka/docker-compose.yml
  • App data volume: /var/lib/docker/volumes/planka_data/_data
  • PostgreSQL データ量: /var/lib/docker/volumes/planka_db-data/_data
  • Custom terms directory: /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

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

ドメインでのSSLの有効化

1. ドメインをサーバーのIPアドレスに設定してください。

2. 編集 docker-compose.yml ドメインを次のように設定するには BASE_URL: BASE_URL=https://yourdomain.com

3. Restart PLANKA services:

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. ブラウザを開き、次のURLにアクセスしてください: https://yourdomain.com

申請内容