Skip to content

[Memo] Services on my RPI

Notes for services running on my RPI4

I currently have two services running on my RPI4

Installation

docker

Docker is used to host all the services below, so need to install docker first

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
dockerd-rootless-setuptool.sh install

I might have followed (tips on this website)[https://raspberrytips.com/docker-on-raspberry-pi/]

PiHole

Use docker container method.

Update/upgrade to latest

cd pihole/
sudo docker pull pihole/pihole
sudo docker compose up -d

Exclidraw

Install Guide: Unofficial, probably will be gone when I need to rebuild Rpi next time…

As of Oct, 2024:

We publish a Docker image with the Excalidraw client at excalidraw/excalidraw. You can use it to self-host your own client under your own domain, on Kubernetes, AWS ECS, etc.

docker build -t excalidraw/excalidraw .
docker run --rm -dit --name excalidraw -p 5000:80 excalidraw/excalidraw:latest

The Docker image is free of analytics and other tracking libraries.

At the moment, self-hosting your own instance doesn’t support sharing or collaboration features.

We are working towards providing a full-fledged solution for self-hosting your own Excalidraw.

other notes: need to pull exclidraw repo, or at least grab Dockerfile from GitHub, and make change to yarn build in the Dockerfile so it’s

RUN NODE_OPTIONS="--max-old-space-size=2048" yarn build:app:docker

instead of

RUN yarn build:app:docker

This avoids running out of heap memory when building docker image (> docker build -t ...). And instead of --rm that removes the image I am using the following command to make the container restart on boot

docker run -dit --restart unless-stopped --name excalidraw -p 5000:80 excalidraw/excalidraw:latest

Tailscale

I use tailscale so I can access Exclidraw from my other devices through the virtual lan.

TODO

[ ] Install photoprism

相關文章

  1. 近況更新 2024-08-24
  2. 2024 新年快樂
  3. 2023 回顧
  4. 祝大家兔年快樂!
  5. 2023 新年快樂
  6. This site no longer ueses Google Analytics
  7. Best of Intima 2022-02