Access Donetick
- Відкрийте браузер і перейдіть за адресою:
https://<SERVER_IP> - A browser SSL warning is expected (self-signed certificate).
- Create a new account on first visit.
Важливі файли та каталоги
- Каталог інсталяції:
/opt/donetick - Docker Compose:
/opt/donetick/docker-compose.yml - Конфігураційний файл:
/opt/donetick/config/selfhosted.yaml - Каталог даних:
/opt/donetick/data - SQLite DB:
/opt/donetick/data/donetick.db - Конфігурація Nginx:
/etc/nginx/sites-available/donetick - SSL-сертифікати:
/etc/nginx/ssl/
Управління послугою
cd /opt/donetick
# Start
docker compose up -d
# Stop
docker compose down
# Restart container only
docker restart donetick
# Logs
docker logs -f donetick
Disable User Registration (Optional)
Edit config (/opt/donetick/config/selfhosted.yaml):
is_user_creation_disabled: true
Then restart:
cd /opt/donetick && docker compose restart donetick
Увімкнення SSL для домену
1. Направте свій домен на IP-адресу сервера.
2. Update the public_host in Donetick configuration (/opt/donetick/config/selfhosted.yaml):
public_host: "https://yourdomain.com"
3. Restart Donetick service:
cd /opt/donetick/
docker compose restart
4. Відредагуйте конфігурацію Nginx і замініть обидва server_name <IP>; з вашим доменом (<yourdomain.com>) для блоків HTTP (порт 80) і HTTPS (порт 443):
vim /etc/nginx/sites-available/donetick
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. Replace SSL paths in Nginx config:
vim /etc/nginx/sites-available/donetick
# Before:
# ssl_certificate /etc/nginx/ssl/donetick.crt;
# ssl_certificate_key /etc/nginx/ssl/donetick.key;
# 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
Mobile App Requirement
- If you plan to use the Android or iOS apps, your Donetick instance must be publicly accessible and served over HTTPS with a valid certificate. The mobile apps will not connect to a local-only or insecure HTTP address.
- Set up a domain and configure SSL using Certbot and Let’s Encrypt as described above.