🧱 Step 1: Launch Portainer and Add the "Obsidian" Stack
-
Go to your Portainer instance - For me it's here:
https://192.168.22.176:9443/#!/home
-
Click Stacks, then Add Stack.
-
Name the stack
obsidian
. -
Use the Docker Compose file from the GitHub repo:
docker-compose-obsidian.yaml. -
Modify paths as needed based on your server setup. For example, I created the
obsidian
folder inside Docker volumes:
/var/lib/docker/volumes/obsidian/
-
Hit Deploy the Stack.
-
Now visit:
http://192.168.22.176:3000
🗃 Step 2: Create Your Vault in Obsidian
-
Click Create New Vault.
-
Name it (I used
mimnets
). -
Click Browse and select
Home
, then click Open. -
Click Create.
Done! Obsidian is now running on your Docker VM.
🔄 Step 3: Deploy Syncthing Stack
-
In Portainer, add a new stack and name it
syncthing
. -
Copy the code from the repo:
docker-compose-syncthing.yaml -
SSH into your server (I used PuTTY) and create a folder:
/var/lib/docker/volumes/syncthing/
-
Also, make sure this folder exists from earlier:
/var/lib/docker/volumes/mimnets/
-
In the docker-compose config, carefully modify these two bind mounts:
- /var/lib/docker/volumes/obsidian:/config - /var/lib/docker/volumes/mimnets:/obsidian
-
Deploy the stack.
-
Access Syncthing at:
http://192.168.22.176:8483
🔐 Step 4: Configure Syncthing (Local Computer Mac/Windows)
-
In the web GUI, set a username and password for future access.
-
Download and install Syncthing on your local machine:
Windows Installer v1.29.0 -
First-time setup includes defining a username/password and accessing the local interface:
https://127.0.0.1:8384
🔗 Step 5: Sync VM and Local Obsidian Notes
Follow these steps to get automated two-way sync:
-
Get Syncthing VM QR code and scan it from the local Syncthing.
-
Add the remote device to your local instance.
-
On the VM Syncthing, add the folder mapped to
/obsidian
. -
On the local Syncthing, accept the shared folder and select your local folder (e.g.
G:\Obsidian-Local
).
🎉 You're All Set!
Now you can create or update notes from any connected device, and Syncthing will handle the rest in the background!
Comments
Post a Comment