Access Donetick
- Open your browser and visit:
https://<SERVER_IP> - A browser SSL warning is expected (self-signed certificate).
- Create a new account on first visit.
Important Files and Directories
- Install directory:
/opt/donetick - Docker Compose:
/opt/donetick/docker-compose.yml - Config file:
/opt/donetick/config/selfhosted.yaml - Data directory:
/opt/donetick/data - SQLite DB:
/opt/donetick/data/donetick.db - Nginx config:
/etc/nginx/sites-available/donetick - SSL certs:
/etc/nginx/ssl/
Manage the Service
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
Enabling SSL with a Domain
1. Point your domain to the server 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. Edit Nginx config and replace both server_name <IP>; with your domain (<yourdomain.com>) for both HTTP (port 80) and HTTPS (port 443) blocks:
vim /etc/nginx/sites-available/donetick
5. Install Certbot:
apt install -y certbot python3-certbot-nginx
6. Run the following command to generate a valid Let’s Encrypt certificate:
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. Restart Nginx to apply the changes:
systemctl restart nginx
9. Open your browser and visit: 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.