Use Caddy as the reverse proxy

Hi,

I've been trying to use my Caddy reverse proxy with Homarr, but I'm encountering a problem. Homarr starts using http://ca7dab43dd9f:7575 (Docker container ID) instead of 127.0.0.1 (localhost).

This is my docker-compose.yml file:

services:
  homarr:
    container_name: homarr
    image: ghcr.io/ajnart/homarr:latest
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
      - ./configs:/app/data/configs
      - ./icons:/app/public/icons
      - ./data:/data
    environment:
      NODE_TLS_REJECT_UNAUTHORIZED: 0
      BASE_URL: homarr.localhost
    ports:
      - 127.0.0.1:7575:7575
    networks:
      - reverse_proxy

networks:
  reverse_proxy:
    external: true

I have the same exact setup using Homepage (https://github.com/gethomepage/homepage) as my personal dashboard for my homelab, and it's working fine. However, I would prefer to use Homarr because I find it nicer. 🙂

I have seen that Traefik works with Homarr. Will Caddy be supported someday? Do you know what might be wrong with my current setup?

Thanks for the support!
GitHub
A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations. - gethomepage/homepage
Solution
I don't know what to write, and I'm not the best English writter 🙂
I have also done this on localhost, I think to use any domain it only require to change it in the Caddyfile homarr.mydomain.com for example. But I can't test this right now because I don't have any domain.
Was this page helpful?