unraid_app_templates/donetick
2024-12-05 15:28:48 +05:30
..
local.yaml Update donetick/ local.yaml 2024-12-04 21:52:53 +05:30
donetick.xml Update donetick/donetick.xml 2024-12-04 22:33:58 +05:30
README.md Update donetick/README.md 2024-12-05 15:28:48 +05:30

A detailed Guide setting up the Donetick components in unRAID.

  1. Installation Setup

    • Open your unRAID dashboard
    • Go to the "Apps" tab
    • Click "Add Container" button
    • Copy and paste the template we provided into the template field
  2. Path Configuration You'll need to verify/create these directories:

/mnt/user/appdata/Donetick/         # Main application directory
/mnt/user/appdata/Donetick/config   # Configuration files
/mnt/user/appdata/Donetick/database # SQLite database storage
  1. Port Configuration
  • Port 2021: Web interface access
    • Can be changed if this port conflicts with other services
    • Default mapping: 2021 -> 2021 (internal)
    • Used for both API and frontend when serve_frontend is true
  1. Environment Variables
  • DT_ENV=local
    • Determines which config file to use
    • Options: local or selfhosted
  1. Configuration Setup Place the appropriate YAML file in /mnt/user/appdata/Donetick/config/:
# local.yaml or selfhosted.yaml structure
name: "local"  # or "selfhosted"
is_done_tick_dot_com: false
telegram:
  token: ""
database:
  type: "sqlite"
  migration: true
jwt:
  secret: "your-secure-secret-here"
  session_time: 168h
  max_refresh: 168h
server:
  port: 2021
  read_timeout: 2s
  write_timeout: 1s
  rate_period: 60s
  rate_limit: 300
  cors_allow_origins:
    - "http://localhost:5173"
    - "http://localhost:7926"
  serve_frontend: true  # false for local.yaml
  1. Directory Structure
/mnt/user/appdata/Donetick/
├── config/
│   ├── local.yaml       # Local configuration
│   └── selfhosted.yaml  # Selfhosted configuration
└── database/
    └── donetick.db     # SQLite database file
  1. Permissions
# Set correct permissions
chmod -R 755 /mnt/user/appdata/Donetick
chmod 644 /mnt/user/appdata/Donetick/config/*.yaml
chown -R nobody:users /mnt/user/appdata/Donetick
  1. Backup Considerations Important directories to backup:
  • /mnt/user/appdata/Donetick/config
  • /mnt/user/appdata/Donetick/database
  1. Security Recommendations
  • Change default JWT secret in config file
  • Use a strong, randomly generated string
  • Consider configuring email notifications
  • Update CORS settings if exposing to internet
  • Configure rate limiting appropriately
  1. Troubleshooting Tips
  • Check container logs in unRAID dashboard
  • Verify config file exists and is named correctly
  • Common issues:
    # Check if config file exists
    ls -l /mnt/user/appdata/Donetick/config/
    
    # Verify port availability
    netstat -tuln | grep 2021
    
    # Check config file permissions
    ls -l /mnt/user/appdata/Donetick/config/*.yaml
    
    # View container logs
    docker logs donetick
    
  1. Additional Features Setup
  • Email Notifications:

    email:
      host: "smtp.example.com"
      port: "587"
      key: "your-smtp-password"
      email: "your@email.com"
      appHost: "your-app-url"
    
  • Telegram Integration:

    telegram:
      token: "your-bot-token"
    
  1. Post-Installation Steps
  2. Access the web interface at: http://[your-unraid-ip]:2021
  3. Set up your initial user account
  4. Configure any additional notification settings
  5. Test task creation and management

This should give you a comprehensive understanding of the Donetick setup process in unRAID.