How to share a Unix socket between containers in the same network?

I have two containers running on previously created Docker network (docker network create mynet), one being a Caddy container and the other is a proxy container. The proxy application reads and writes to a unix socket (/dev/shm/Xray-VLESS-gRPC.socket) and I’m trying to share this socket with the Caddy container to setup a reverse proxy on its port. However I’m getting errors in Caddy, saying dial unix /dev/shm/Xray-VLESS-gRPC.socket: connect: no such file or directory!

How can I share this socket between these containers?

Note: I’m using Docker Compose on Ubuntu.

Caddy docker-compose.yml:

version: "3.9"
services:
  caddy:
    image: caddy:latest
    restart: unless-stopped
    container_name: caddy
    cap_add:
      - NET_ADMIN
      - CAP_NET_BIND_SERVICE
    networks:
      - caddy
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp"
    volumes:
      - $HOME/Docker/caddy/Caddyfile:/etc/caddy/Caddyfile
      - $HOME/Docker/caddy/www:/srv
      - $HOME/Docker/caddy/log/:/var/log/
      - caddy_data:/data
      - caddy_config:/config

volumes:
  caddy_data:
    external: true
  caddy_config:
    external: true

networks:
  caddy:
    external: true

Proxy docker-compose.yml:

version: "3.9"
services:
    xray:
        image: teddysun/xray:latest
        container_name: xray
        cap_add:
            - NET_ADMIN
            - CAP_NET_BIND_SERVICE
        restart: unless-stopped
        networks:
            - caddy
        ports:
            - "4443:4443"
        volumes:
            - $HOME/Docker/xray/etc/config.json:/etc/xray/config.json:ro
            - $HOME/Docker/xray/log/:/var/log/xray/:rw
        command: [ "xray", "run", "-config", "/etc/xray/config.json" ]
        environment:
            - TZ=UTC

networks:
    caddy:
        external: true