Přístup
Otevřete prohlížeč a navštivte: 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.
Důležité soubory a adresáře
- Instalační adresář:
/opt/planka - Soubor Docker Compose:
/opt/planka/docker-compose.yml - App data volume:
/var/lib/docker/volumes/planka_data/_data - Objem dat PostgreSQL:
/var/lib/docker/volumes/planka_db-data/_data - Custom terms directory:
/opt/planka/terms - Konfigurace Nginx:
/etc/nginx/sites-available/planka - Enabled site:
/etc/nginx/sites-enabled/planka - SSL certifikáty:
/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
Povolení SSL s doménou
1. Nasměrujte svou doménu na IP adresu serveru.
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. Upravte konfiguraci Nginx a nahraďte oba server_name <IP>; s vaší doménou (<yourdomain.com>) pro bloky HTTP (port 80) i HTTPS (port 443):
vim /etc/nginx/sites-available/planka
5. Nainstalujte Certbot:
apt install -y certbot python3-certbot-nginx
6. Spusťte následující příkaz k vygenerování platného certifikátu 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. Restartujte Nginx, aby se změny projevily:
systemctl restart nginx
9. Otevřete prohlížeč a přejděte na adresu: https://yourdomain.com
