Simple Markdown Viewereditor With A Similar Behaviour Than Obsidian
Welcome to this tutorial on setting up a self-hosted Markdown viewer editor that shares similarities with the popular Obsidian application. This guide is ideal for DevOps engineers and experienced sysadmins.
# Simple Markdown Viewer Editor With a Similar Behavior as Obsidian for Your Homelab
Welcome to this tutorial on setting up a self-hosted Markdown viewer editor that shares similarities with the popular Obsidian application. This guide is ideal for DevOps engineers and experienced sysadmins who want to leverage automation and infrastructure in their homelab.
Prerequisites
Before you begin, make sure your system meets the following requirements:
- Operating System: Ubuntu 20.04 or later
- Docker: Version
5.0.8
or higher - Docker Compose: Version
1.29.2
or higher
Solution Steps
1. Install and Update Docker
1
2
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $(whoami)
Verify the installation:
1
docker --version
2. Create a docker-compose.yml
file with the following content:
1
2
3
4
5
6
7
8
9
version: '3.8'
services:
markdown-viewer:
image: jimmywarting/obsidian-docker:latest
environment:
- VUE_APP_API_URL=http://localhost:8080
- INITIAL_PASSWORD=your_password_here
ports:
- "8080:8080"
This configuration sets up a Docker container running the jimmywarting/obsidian-docker
image, which is a community project designed to emulate the functionality of Obsidian.
3. Start the service:
1
docker-compose up --build
Now you can access your Markdown viewer editor by visiting http://localhost:8080
. Use the password specified in the environment variable to log in.
Troubleshooting
If you encounter issues, ensure that Docker and Docker Compose are properly installed and running. Verify that no container is already using port 8080 by running docker ps
and ensuring there are no containers listening on port 8080.
Conclusion
With this simple guide, you can set up a self-hosted Markdown viewer editor with similarities to Obsidian for your homelab. This allows you to leverage the power of DevOps and infrastructure in your personal projects while enjoying an efficient and user-friendly editing experience.
Potential Security Considerations
- Ensure that your system is up-to-date with the latest security patches
- Use strong passwords for all services, especially those exposed over the internet
- Consider using a VPN or firewall to secure your connection
Performance Optimization Tips
- Allocate sufficient resources (CPU, RAM) to your Docker container
- Monitor resource usage and scale accordingly
- Use caching mechanisms like Redis to improve performance
Common Pitfalls and How to Avoid Them
- Forgetting to update system packages before installing new software
- Using incompatible versions of Docker or Docker Compose
- Exposing services over the internet without proper security measures