teddycloud is running just fine and now I want to connect the teddycloud server to my homeassistant instance.
teddycloud is running inside a docker container on the server where also HA is running and also my mosquitto server is running.
teddycloud has its own IP via compose file. When I configure the IP from the mosquitto server (192.168.0.111) the teddycloud logs displaying errors:
teddycloud | ERROR|mqtt.c:0340:mqttConnect| Failed to connect to MQTT: Access denied [271]
teddycloud | INFO |mqtt.c:0313:mqttConnect| Connect to ‘192.168.0.111’
teddycloud | INFO |mqtt.c:0333:mqttConnect| trying IP: 192.168.0.111
is there something I am missing in communitation between docker container to docker host?
My docker compose file:
version: '3'
services:
teddycloud:
container_name: teddycloud
mac_address: 66-66-66-00-00-01
hostname: teddycloud
image: ghcr.io/toniebox-reverse-engineering/teddycloud:latest
ports:
- 80:80 #optional
- 443:443 #Port is needed for the connection for the box
dns:
- 8.8.8.8
- 192.168.0.1
networks:
web_net:
ipv4_address: 192.168.0.222
volumes:
- certs:/teddycloud/certs
- config:/teddycloud/config
- content:/teddycloud/data/content
- library:/teddycloud/data/library
- firmware:/teddycloud/data/firmware
restart: unless-stopped
volumes:
certs:
config:
content:
library:
firmware:
networks:
web_net:
driver: bridge
# driver_opts:
# parent: enp2s0
# com.docker.network.enable_ipv6: "false"
ipam:
driver: default
config:
- subnet: 192.168.0.0/24
gateway: 192.168.0.1