
Leantime is an open-source project management system for teams without dedicated project managers. It combines task management with strategic planning, so teams can tie daily work to project goals and track progress in one place. Its interface reduces cognitive load, making it approachable for startups, small teams, and neurodivergent users, including people with ADHD. Leantime runs on PHP with MySQL or MariaDB, you can self-host it, and teams commonly use it for software development, team task coordination, and product roadmap planning.
This article explains how to deploy Leantime on a Linux server using Docker Compose with MySQL for data storage and Traefik as the reverse proxy for TLS termination. It covers directory and environment setup, the Docker Compose deployment, the initial server setup, and demonstrates project management features by creating projects, milestones, and tasks through the web interface.
Before you begin, you need to:
leantime.example.com).Leantime requires a configuration file to define environment variables, database connections, and application settings. The setup includes persistent storage for the MySQL database, uploaded files, and application configuration so the data persists across server restarts.
Create the project directory.
Navigate to the project directory.
Create the directories for the database, uploaded files, plugins, and logs.
Change the ownership of the Leantime data directories to UID and GID 1000, the non-root user the Leantime container runs as.
The MySQL container sets the ownership of the db_data directory itself when it starts.
Generate a secret key for the Leantime application.
Save the output for use later in the environment file.
Create an environment file.
Add the following configuration:
Replace:
leantime.example.com with your configured domain.admin@example.com with your email address.ROOT_PASSWORD with a strong MySQL root password.DATABASE_PASSWORD with a strong MySQL user password.GENERATED_SESSION_PASSWORD with the value you generated in the earlier step.Save and close the file.
The deployment stack uses Traefik as the reverse proxy for TLS termination and deploys Leantime and MySQL containers with bind-mounted application and database directories. This configuration is based on the official Leantime Docker Compose configuration.
Create the Docker Compose manifest file.
Add the following configuration:
Save and close the file.
In the above manifest:
traefik: Serves as the reverse proxy and TLS termination point, using the official Traefik image. It exposes ports 80 and 443 for HTTP and HTTPS traffic, stores certificates in the ./letsencrypt directory, and automatically provisions them through Let's Encrypt.leantime_db: Stores the Leantime database, including projects, tasks, milestones, users, and application data, using the MySQL 9.7 image. The database configuration comes from the .env file, and the data persists in the db_data directory.leantime: Runs the Leantime web application using the official Leantime image and starts only after the leantime_db service is available. The application URL, database connection settings, session settings, and other application configuration come from the .env file. Uploaded files, plugins, and logs persist in the userfiles, public_userfiles, plugins, and logs directories.mysql_helper: Runs as a helper service for managing permissions on the MySQL data directory and is only started when the helper profile is enabled.Start all services in detached mode.
Verify that the services are running.
The output displays all the containers in the Up state.
View the service logs to confirm that the services started.
The logs show Traefik obtaining the certificate, MySQL accepting connections, and Leantime running its scheduled jobs. A Running [queue:emails] ... FAIL line is expected because the deployment does not configure a mail server, and it does not affect the web interface.
For more information on managing a Docker Compose stack, see the How to Use Docker Compose article.
Leantime provides a web interface for structuring work into projects, milestones, and tasks. Its dashboard gives you a central place to see what's in progress, track status, and manage work.
Open your web browser and navigate to Leantime at https://leantime.example.com, replacing leantime.example.com with your configured domain.
Enter your Email, First name, Last name, and Company Name, then click Install. The installation takes a few minutes, then Leantime opens the page to set up the administrator account.
Enter your Name, Role or Title, and Password. The password must have at least 8 characters, including an uppercase letter, a lowercase letter, a number, and a special character. After entering these details, click Next to continue.
For the Theme customization page, select More or Less under Optimal Stimulation, and select a font, such as Atkinson Hyperlegible, under Readability. Then, click Next to continue.
For the Personalization page, select the Color Mode, such as Light or Dark, and then select the Color Scheme. Click Next to continue.
For the Routine page, select your preferred time for each option, then click Next to continue.
Click Complete Sign up to access the dashboard. After clicking the sign-up button, a pop-up appears.
Enter a task, such as Deploy Leantime, and then click Let's go to access the Leantime dashboard.
Leantime organizes project work into projects, milestones, and tasks, keeping related work organized and trackable. This workflow creates a project, adds a milestone and tasks, assigns tasks with due dates, and updates task statuses to demonstrate the platform's core project management features.
The first time you open a project page, such as Milestones or To-Dos, Leantime displays a welcome dialog that covers the page. Click Close or I'll explore on my own to dismiss it before you continue.
A project in Leantime provides a central place to organize related milestones, tasks, and project work.
From the Leantime dashboard, click Project Hub in the left navigation menu.
Click Start something new to create a new project.
Under Launch Your Endeavor, click Create a Project.
Enter a project title, such as Website Redesign, and an optional description, such as Redesign the company website and improve its user experience.
Optionally, specify the Start Date, Due Date, Client / Product, and project access settings.
Click Save to create the project.
A milestone in Leantime helps organize and track a specific stage or goal within a project.
From the Website Redesign project, click Milestones in the left navigation menu.
Click New to open the milestone creation options, then click Add Milestone.
Enter a milestone title such as Design and Planning.
Click Save to create the milestone.
Tasks in Leantime help break the project into smaller pieces of work that can be assigned and tracked.
From the Website Redesign project, click To-Dos in the left navigation menu.
Click New and select Add To-Do.
Enter a task title, such as Design the new homepage, and an optional description, such as Create a new homepage layout that matches the website redesign goals.
Optionally, specify the Priority, Effort, Milestone, Sprint, and other task details.
Click Save & Close to create the task.
Assign tasks to team members and set due dates to organize the work and keep the project on schedule.
From the Website Redesign project, click To-Dos in the left navigation menu.
Click the task you want to update, such as Design the new homepage.
Under Assigned to, select a team member to assign the task. Leantime assigns new tasks to their creator, so keep your own account if you have not invited other users.
Under Due Date, select a date for completing the task.
Click Save & Close to apply the changes.
Updating task statuses helps you track completed work and monitor the progress of the project.
From the Website Redesign project, click To-Dos in the left navigation menu.
Drag the Design the new homepage task from the New column to the In Progress column.
After you finish the work, drag the task to the Done column. Leantime counts only completed tasks toward project and milestone progress.
Open Project Overview from the left navigation menu to view the updated project progress, including the completion percentage and the task's status under the latest to-dos.
You have deployed Leantime on a Linux server using Docker Compose and configured MySQL for data storage and Traefik for TLS termination. This gives you a project management platform for organizing projects, milestones, tasks, and tracking project progress. For more information and advanced configuration, see the official Leantime documentation.
0 Comments
Be the first to comment and share your perspective with the community.