Some useful docker commands
I wanted to jot down a couple of commands I've found useful.
I wanted to jot down a couple of commands I've found useful.
To be honest, it's a little confusing how to get started because there are lots of instructions out there and docker compose files floating around that are outdated. Let's follow the official docs at https://grafana.com/docs/loki/latest/setup/install/docker/#install-with-docker-compose.
The docker compose file from the docs as of today is here: https://raw.githubusercontent.com/grafana/loki/v3.4.1/production/docker-compose.yaml. Note that the link is likely subject to change with new versions.
You set up a business email. Awesome! However, your outgoing emails on ending up in your recipients spam box. We need to fix that.
In this article, I'm going to use Microsoft 365 as my email provider, but the process will be similar for any provider.
To use the GeoIP2 module. We pretty much need to use a Dockerfile to start with the latest nginx, but then compile the GeoIP2 module from source. This is preferred because using precompiled binaries is actually challenging - we have to ensure we get the binary that was compiled with the same nginx version that we have. Compiling the module ourselves actually simplifies this process.
Docker Project folder
├── docker
│ ├── nginx
│ │ ├── docker-compose.yml
│ │ ├── cloudflare.ini
│ │ ├── nginx.conf
│ └── └── (any additional confs for server blocks)
└────────────
On the server with Tailscale, run tailscale funnel
Ok, so Tailscale Funnel definitely does not support CNAME records. I could not get it to work unfortunately.
We can follow the docker-compose steps here https://docs.goauthentik.io/docs/install-config/install/docker-compose.
To sign in for the first time, you need to navigate to http://<your server's IP or hostname>:9000/if/flow/initial-setup/
I am going to set up the preconfigured npmGrafStats from https://github.com/smilebasti/npmGrafStats.
Here is an easy way to patch an entity.