Dostęp
Otwórz przeglądarkę i wejdź na stronę: 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.
Ważne pliki i katalogi
- Katalog instalacyjny:
/opt/planka - Plik Docker Compose:
/opt/planka/docker-compose.yml - App data volume:
/var/lib/docker/volumes/planka_data/_data - Objętość danych PostgreSQL:
/var/lib/docker/volumes/planka_db-data/_data - Custom terms directory:
/opt/planka/terms - Nginx config:
/etc/nginx/sites-available/planka - Enabled site:
/etc/nginx/sites-enabled/planka - Certyfikaty 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
Włączanie protokołu SSL dla domeny
1. Skieruj swoją domenę na adres IP serwera.
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. Edytuj konfigurację Nginx i zamień oba elementy. server_name <IP>; z Twoją domeną (<yourdomain.com>) zarówno dla bloków HTTP (port 80), jak i HTTPS (port 443):
vim /etc/nginx/sites-available/planka
5. Zainstaluj Certbot:
apt install -y certbot python3-certbot-nginx
6. Uruchom następujące polecenie, aby wygenerować ważny certyfikat Let’s Encrypt:
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. Uruchom ponownie Nginx, aby zastosować zmiany:
systemctl restart nginx
9. Otwórz przeglądarkę i przejdź do strony: https://yourdomain.com
