From 786121bcd4d61f2bf031cdba5f14a8c320a9f197 Mon Sep 17 00:00:00 2001 From: Yanxin Lu Date: Sat, 27 Jul 2024 17:54:37 -0700 Subject: [PATCH] vault backup: 2024-07-27 17:54:37 --- notes/vps设置.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/notes/vps设置.md b/notes/vps设置.md index 180fa16..cd20348 100644 --- a/notes/vps设置.md +++ b/notes/vps设置.md @@ -1,3 +1,6 @@ +## TODO +- 之后用caddy,不要用nginx了 + ## swap file ``` cd /var @@ -182,7 +185,15 @@ docker stats ```shell # monitoring # https://glances.readthedocs.io/en/latest/index.html -glances +docker run \ + --restart="always" \ + -p 61208-61209:61208-61209 \ + -e GLANCES_OPT="-w" \ + -v /etc/os-release:/etc/os-release:ro \ + -v /var/run/docker.sock:/var/run/docker.sock:ro \ + -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro \ + --pid host \ + docker.io/nicolargo/glances # https://github.com/pldubouilh/gossa cd ~/softwares/gossa @@ -203,4 +214,9 @@ docker-compose up # https://shaarli.readthedocs.io/en/master/Docker.html cd ~/softwares/shaarli sh docker-up.sh + +# https://github.com/redlib-org/redlib/blob/main/compose.yaml +cd ~/softwares/redlib +touch .env +docker compose up ``` \ No newline at end of file