this post was submitted on 12 Feb 2025
1 points (100.0% liked)

Self-Hosted Alternatives to Popular Services

224 readers
1 users here now

A place to share, discuss, discover, assist with, gain assistance for, and critique self-hosted alternatives to our favorite web apps, web...

founded 2 years ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/selfhosted by /u/marlburrow on 2025-02-11 14:29:30+00:00.


Hey fellow self-hosters! I wanted to share a tool I created to simplify DNS management when running Docker services.

What it does: Simply add labels to your Docker containers/services, and it automatically creates/updates the corresponding DNS records in Cloudflare. No more manual DNS management!

Key features:

  • Works with both standalone Docker and Swarm mode
  • Supports A, AAAA, CNAME, MX, and TXT records
  • Automatic public IP detection
  • Smart defaults (just specify the hostname, it handles the rest)
  • Cloudflare proxy support
  • Multiple domains/subdomains per container

Quick example:

version: "3.8"
services:
  nextcloud:
    image: nextcloud
    labels:
      - "dns.cloudflare.hostname=cloud.yourdomain.com"
      # That's it! It will automatically create an A record

More complex example:

services:
  webapp:
    image: nginx
    labels:
      - "dns.cloudflare.hostname=app.domain.com"
      - "dns.cloudflare.type=A"
      - "dns.cloudflare.proxied=true"

      # API subdomain (A record with custom TTL)
      - "dns.cloudflare.hostname.api=api.domain.com"
      - "dns.cloudflare.type.api=A"
      - "dns.cloudflare.ttl.api=3600"

      # Admin subdomain (CNAME record)
      - "dns.cloudflare.hostname.admin=admin.domain.com"
      - "dns.cloudflare.type.admin=CNAME"
      - "dns.cloudflare.content.admin=app.domain.com"

      # WWW subdomain (proxied CNAME)
      - "dns.cloudflare.hostname.www=www.domain.com"
      - "dns.cloudflare.type.www=CNAME"
      - "dns.cloudflare.content.www=app.domain.com"
      - "dns.cloudflare.proxied.www=true"

This will create:

It's open source, written in TypeScript, and designed to be lightweight and reliable. Perfect for homelab setups where you're frequently spinning up new services and need DNS to just work.

Check it out on GitHub: Cloudflare DNS Manager

Let me know if you have any questions or suggestions!

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here