From 8d902cd6886ba1ee06cbf78a3e5df66eda932b56 Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Tue, 27 May 2025 20:56:03 -0600 Subject: [PATCH] adding silverbullet --- home-server/notes/.env.example | 1 + home-server/notes/.gititgnore | 1 + home-server/notes/docker-compose.yml | 27 ++++++++++++++++++++++++++ home-server/notes/ts-serve-config.json | 16 +++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 home-server/notes/.env.example create mode 100644 home-server/notes/.gititgnore create mode 100644 home-server/notes/docker-compose.yml create mode 100644 home-server/notes/ts-serve-config.json diff --git a/home-server/notes/.env.example b/home-server/notes/.env.example new file mode 100644 index 0000000..a609e35 --- /dev/null +++ b/home-server/notes/.env.example @@ -0,0 +1 @@ +SB_USER=admin:admin \ No newline at end of file diff --git a/home-server/notes/.gititgnore b/home-server/notes/.gititgnore new file mode 100644 index 0000000..2eea525 --- /dev/null +++ b/home-server/notes/.gititgnore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/home-server/notes/docker-compose.yml b/home-server/notes/docker-compose.yml new file mode 100644 index 0000000..43bbafc --- /dev/null +++ b/home-server/notes/docker-compose.yml @@ -0,0 +1,27 @@ +services: + silverbullet: + image: ghcr.io/silverbulletmd/silverbullet:v2 + restart: unless-stopped + env_file: + - ./.env + volumes: + - /data/silverbullet:/space + network_mode: service:ts-ingress + + ts-ingress: + image: tailscale/tailscale:latest + container_name: notes-tailscale + hostname: notes + restart: unless-stopped + environment: + - TS_STATE_DIR=/var/lib/tailscale + - TS_SERVE_CONFIG=/config/config.json + env_file: + - ./.env + volumes: + - /data/tailscale/notes-proxy:/var/lib/tailscale + - ./ts-serve-config.json:/config/config.json + - /dev/net/tun:/dev/net/tun + cap_add: + - net_admin + - sys_module \ No newline at end of file diff --git a/home-server/notes/ts-serve-config.json b/home-server/notes/ts-serve-config.json new file mode 100644 index 0000000..19b8e9f --- /dev/null +++ b/home-server/notes/ts-serve-config.json @@ -0,0 +1,16 @@ +{ + "TCP": { + "443": { + "HTTPS": true + } + }, + "Web": { + "${TS_CERT_DOMAIN}:443": { + "Handlers": { + "/": { + "Proxy": "http://127.0.0.1:3000" + } + } + } + } +} \ No newline at end of file