Replies: 3 comments
|
In case it can be useful to anybody, a few steps I took to deploy on my Synology NAS git clone https://github.com/MusiCode1/obsidian-web.git obsidian-webIn FROM node:20-alpine
WORKDIR /app
# Copy project files
COPY . .
# Download Obsidian renderer
RUN node scripts/update-obsidian.js
# Install server dependencies
WORKDIR /app/server
RUN npm install
# Expose the default port
EXPOSE 3000
# Set environment variables (you can override these at runtime)
ENV HOST=0.0.0.0
ENV PORT=3000
ENV VAULT_PATH=/app/vault
# Start the server
CMD ["npm", "start"]In the parent folder to version: '3.8'
services:
obsidian-web:
build:
context: ./obsidian-web # Path to Dockerfile relative to compose.yaml
dockerfile: Dockerfile
container_name: obsidian-web
ports:
- "3000:3000" # e.g. "4123:3000" to change port
environment:
- HOST=0.0.0.0
- PORT=3000
- VAULT_PATH=/app/vault
volumes:
# Maps a folder on your host machine to the vault inside the container
- /base/docker/obsidian:/app/vault
restart: unless-stoppedThe structure looks like this (Dr. Frankenstein layout) Then running via the container manager + reverse proxy from within Synology DSM |
|
I really want to try to integrate LiveSync into the demo, so that basically anyone who has a LiveSync instance can connect to their instance. I'm also thinking about maybe making a binary that anyone can download and run on their computer, and then access it from anywhere. Anyway, I'm currently trying to move from Obsidian Desktop to Obsidian Mobile, where there's a lot of abstraction that makes it really easy to create polyfills for all the built-in interfaces that are supposed to support Obsidian Mobile. |
|
Regarding your LifeSync idea ... yes, making the backend more flexible would be great. I personally think it would be good to have a PostgreSQL + S3 backend, while others might want it to use a GitHub repo as the vault (though that would be harder I think). |
Uh oh!
There was an error while loading. Please reload this page.
I am happy to start the round of discussions :)
First of all thanks a lot for this development, it has very high potential and is a game changer for those dreaming of obsidian as on prem web app. I made it run on my Synology NAS very easily and it's already an excellent base. Here are a few bullets on present observations and what would be a dream set-up for me
I understand this repo is proof of concept but the base and potential is so good that I am sure it will attract attention. I can imagine there will be some level of convergence on needs, or maybe trigger the obsidian dev to re-consider offering such a solution in their roadmap?
Anyway, this made my day so thanks again!
All reactions