Wyoming Protocol for docker install HA

I have HA installed as a docker on CasaOS. Now I want to use Piper and Whisper.

I installed both docker images on the same host machine as my HA docker image. Used the host IP host and the default port number for Piper and Wishper, but I can’t connect to them.

Can someone help me with this?

What error are you receiving. Is there any message or log you may provide.

Only says it can’t connect. New to this so don’t know about the logs.

When setting up docker containers always give the container a hostname

When connecting two docker containers always

  1. Make sure the are both using a common docker network

  2. Connect them using hostname:port

In the case of two docker containers being connected it is not necessary to expose ports. Exposed ports are used for connection from outside the host server. Inside the docker network the container ports are all exposed

If you use portainer you may often gain command line access within a container. This will allow you to ping another container and verify the see each other.

Yes I know, both steps I did but still gives Home Assistant when I want to connect Piper through a Wyoming Protocol and error that I cant connect it.

Post docker run commands or compose file

Wyoming just kinda worked so I can only presume maybe it’s something with container build. Assuming HA can see container:port and no networking issue exist just remembered I couldn’t get whisper to run and only the Linux.io image worked. Meant to change that but I’m still testing and hadn’t got to it yet

Portainer shows live logs for individual containers

Below is what I used. I did expose port but used “dockerlocal” network to connect. Dockerlocal is network I manually created and HA was added to same network


services:

##########################################
#                  PIPER                 #
##########################################
  piper:
    container_name: piper
    hostname: piper
    restart: unless-stopped    
    image: rhasspy/piper-recording-studio:latest
    ports:
      - 8000:8000
    volumes:
      - /srv/main/docker/whisper/application/piper_app_output:/app/output
    
    networks:
      dockerlocal:
      
    deploy:
      resources:
        limits:
          cpus: '3'
          memory: 5000M
        reservations:
          cpus: '3'
          memory: 2000M


##########################################
#                 WHISPER                #
##########################################
  whisper:
    container_name: whisper
    hostname: whisper
    restart: unless-stopped    
    image: lscr.io/linuxserver/faster-whisper:latest

    ports:
      - 10300:10300
    volumes:
      - /srv/main/docker/whisper/application/config:/config
      
    environment:
      - PUID=1007
      - PGID=1007
      - TZ=America/Chicago
      - WHISPER_MODEL=tiny-int8
      - WHISPER_BEAM=1 #optional
      - WHISPER_LANG=en #optional    

    networks:
      dockerlocal:
    deploy:
      resources:
        limits:
          cpus: '3'
          memory: 5000M
        reservations:
          cpus: '3'
          memory: 2000M
 
##########################################
#              NETWORKS                  #
##########################################      
networks:
  dockerlocal:
    external: true
#  MacVlan_Net:
#    external: true