Install Beaver Habit Tracker on a Synology NAS with Docker
Are you ready to take control of your habits and track your progress effortlessly? Beaver Habit Tracker is here to make habit-building easy, efficient, and enjoyable. With a sleek design and powerful features, this tool is perfect for anyone looking to stay consistent, achieve goals, and celebrate streaks.
Key Features
Pages
- Index Page: A clear and organised hub to navigate your habits.
- Habit List Page: Keep all your habits in one place, neatly ordered.
- Order Habits: Customise your habit order for a personal touch.
- Habit Detail Page: Dive into the specifics of any habit and track its progress.
- Calendar: Visualise your consistency and schedule effortlessly.
- Streaks: Celebrate your success with visual streak tracking.
Flexible Storage Options
- Session-Based Disk Storage: For temporary tracking needs.
- User-Based Disk Storage: Personalised, reliable disk storage for long-term tracking.
- User-Based DB Storage: Database integration for advanced users.
CICD & Hosting Flexibility
- Custom Domain: Personalise your tracker with your unique domain name.
- Self-Hosting Option: Complete control by hosting on your own infrastructure.
- Unit Tests & Deployment Pipeline: Seamless, automated updates to keep your tracker running smoothly.
Additional Features
- Export & Import: Switch devices or back up your data with ease.
- User Management: Manage multiple users effortlessly.
- User Timezone Support: Tailored tracking that respects your time zone.
- RESTful API: Integrate with other tools and platforms for enhanced functionality.
Whether you’re an individual looking to build better habits or a team in need of a robust tracking system, Beaver Habit Tracker provides the tools and flexibility you need. Stay consistent, organised, and motivated with this comprehensive habit tracking solution.
You can find the Official site here.
Screenshots/Demo 🖥️
You can find the demo here.
Here are a few screenshots to give you a better sense of how it looks.
Create Share Folder
-
Log in to your Synology NAS
Access your Synology NAS using your web browser and enter the login credentials. -
Open the Main Menu
In the top-left corner, click on the Main Menu (the icon with squares). -
Navigate to File Station
In the Main Menu, locate and click on File Station to open the file management tool. -
Go to the Docker Folder
In the left sidebar of File Station, find your Docker folder or navigate to the location where you store Docker-related files (you may need to create one if it doesn’t exist). -
Create a New Folder
At the top of File Station, click on Create.
Select Create Folder from the dropdown menu.
Name the folderbeaverhabittracker
. Press OK to create the folder.
You must download habit.db and upload to the beaverhabittracker folder Right click, save as
Now, you have a Beaverhabittracker folder in the Docker directory, where you can store configuration files or other relevant data for your setup.
Setting up Task Scheduler
- Log in to your Synology NAS.
- Navigate to the Main Menu and open the Control Panel.
- Scroll down and locate Task Scheduler, then click to open it.
-
In the top menu bar, click Create, select Scheduled Task, and choose User-defined Script.
- In the window that appears:
- Enter a task name. This can be anything, such as the name of the app you’re installing. It doesn’t need to be specific. Beaverhabittracker will be fine.
- For User, select root from the dropdown menu.
- Click on the Schedule tab at the top:
- Select Run on the following date and leave the Start time and Repeat options at their default values.
- Next, click the Task Settings tab:
- Ignore the Notification section.
- Under Run command, paste your
docker run
command. Double-check to ensure all file paths and parameters are correct.
Docker Run Code
1
2
3
4
5
6
7
8
9
docker run -d \
--name beaverhabits \
-e FIRST_DAY_OF_WEEK=0 \
-e HABITS_STORAGE=DATABASE \
-e MAX_USER_COUNT=1 \
-v /volume1/docker/beaverhabittracker/habits.db:/app/habits.db \
-p 8080:8080 \
--restart unless-stopped \
daya0576/beaverhabits:latest
Please double-check your
paths
. You can also change the port number if required. Remember to visit the official guide as there may be extra features you can enable. Official Guide
- Click OK to save the task. You’ll be prompted to enter your Synology NAS password—enter it and press Submit.
- Back in the List of tasks, locate the task you just created.
- Select the task, then click Run from the top menu. When prompted to confirm, click OK.
Your task will now execute, setting up your Docker container. This process may take several minutes. You can now open your container by visiting:
yournasipaddress:8080. Beaverhabittracker should now be up and running!
Docker Compose Code
If you’re comfortable with Docker Compose, you can use the following configuration to set up the installation for Beaverhabittracker.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
version: '3.8'
services:
beaverhabits:
image: daya0576/beaverhabits:latest
container_name: beaverhabits
environment:
- FIRST_DAY_OF_WEEK=0
- HABITS_STORAGE=DATABASE
- MAX_USER_COUNT=1
volumes:
- /volume1/docker/beaverhabittracker/habits.db:/app/habits.db
ports:
- "8080:8080"
restart: unless-stopped
1
docker-compose up -d
Thanks for reading! 🎉🤘🎶
You're a star! 🌟 Thanks for reading, and don’t miss out on the next post. 🚀📖
If you enjoy the site, feel free to tip me.