Skip to content
wanaylorPublic

About

My Homelab

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

Homelab

Instructions

Tailscale

Currently tailscale does not allow users to set api keys with no expiry. To avoid having keys expire I install tailscale on the OS and set the key to not expire. However I've kept the compose entry for documentation purposes.

Graylog

Running mongo db on raspberry pi requires a manual download of the image. Follow the instructions here to get the image which is used in the compose file

cd mongo_image

wget https://github.com/themattman/mongodb-raspberrypi-docker/releases/download/r7.0.8-mongodb-raspberrypi-docker-unofficial/mongodb.ce.pi4.r7.0.8-mongodb-raspberrypi-docker-unofficial.tar.gz

docker load --input mongodb.ce.pi4.r7.0.8-mongodb-raspberrypi-docker-unofficial.tar.gz

Graylog requires a few environment variables. I prefer not to have .env files in github repos to prevent the chances of leaking secrets. So, instead I supply the required variables with an environment file outside the repo. However, this requires the environment variables that reference local .env files to be commented out since the env_file: directive does not substitute in envs like local .env files do.

Homeassistant

See the example config file to see how to use the Postgred DB.

Docker Settings

I am using zfs with two NVME in a mirror so I've set my filesystem accordingly. Also, the default logging method is set to Graylog. For this reason I make Graylog start first in the compose file that way all the other containers can log their startup to it. If there is an issue with Graylog or logging then this can be reverted to json file for local debugging.

Secrets

For each of the secrets, make a file in /secrets on the host filesystem and put the secret's value in plain text in the file. That secret file will be mounted in /run/secrets inside the container. Some images support (like Postgres) support this as a substitute for environment variables. Others (like Tailscale) do not. Check the image docs to verify.

About

My Homelab

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors