“Why isn’t my Docker bind mounted file updating from host to container when I make changes with vim?”

The inodes have it When setting up the TIG stack, I saw that Telegraf has an option to reload its configuration from telegraf.conf, which it does on receiving a SIGHUP signal. Since in Docker, it gets pid 1, reloading config is easy: docker exec -it telegraf /bin/kill -HUP 1 Which worked well. At least until […]

Continue Reading

Generating a traefik/nginx password hash without htpasswd

For when you don’t want to install httpd-tools / apache2-utils tl; dr: openssl passwd -apr1 | sed -E “s:[\$]:\$\$:g” (traefik) openssl passwd -apr1 (nginx) Explanations below. Generating a Hash Traefik does basic auth as a middleware. For this you need a password hash. The docs suggest using htpasswd, (eg like htpasswd -nbB), which is grand […]

Continue Reading

Using Discourse Dev with Traefik (without ‘Bad Gateway’ + ‘blocked host’)

tl;dr: Traefik grabs the first port it sees, which on the dev image is 1080- we want port 9292. Use –label=traefik.http.routers.discourse-dev.port=9292 You need to set a dev host using en env var in the container: -e DISCOURSE_DEV_HOSTS=your_dev_hostname \ With the dev version of Discourse working, I wanted to let its connectivity be managed by the […]

Continue Reading

Adding Discourse to a mix of nginx-hosted sites [How]

I set up a Discourse server today. It was pleasantly straightforward. The official docs work well enough, though there are a few things I did: integrated with existing nginx sites by cribbing from this guide (short version: forward Discourse requests to a socket) set up email delivery via MailJet- their admin interface makes getting credentials […]

Continue Reading