adding silverbullet
This commit is contained in:
1
home-server/notes/.env.example
Normal file
1
home-server/notes/.env.example
Normal file
@@ -0,0 +1 @@
|
|||||||
|
SB_USER=admin:admin
|
||||||
1
home-server/notes/.gititgnore
Normal file
1
home-server/notes/.gititgnore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.env
|
||||||
27
home-server/notes/docker-compose.yml
Normal file
27
home-server/notes/docker-compose.yml
Normal file
@@ -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
|
||||||
16
home-server/notes/ts-serve-config.json
Normal file
16
home-server/notes/ts-serve-config.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"TCP": {
|
||||||
|
"443": {
|
||||||
|
"HTTPS": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Web": {
|
||||||
|
"${TS_CERT_DOMAIN}:443": {
|
||||||
|
"Handlers": {
|
||||||
|
"/": {
|
||||||
|
"Proxy": "http://127.0.0.1:3000"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user