Hi,
I have a server setup with a running mosquitto instance and I´m thinking of removing mosquitto from the ChirpStack Docker Compose file and using the active mosquitto instance. Is it possible and if yes, how can I do it?
My current setup looks as follows, but the ChirpStack and the Gateway bridge container can not connect to MQTT.
version: "3"
services:
ChirpStack:
image: chirpstack/chirpstack:4
container_name: ChirpStack
restart: unless-stopped
command: -c /etc/chirpstack
volumes:
- ./configuration/CA:/opt/CA
- ./configuration/chirpstack:/etc/chirpstack
- ./lorawan-devices:/opt/lorawan-devices
depends_on:
- ChirpStack_Postgres
- ChirpStack_Redis
environment:
- MQTT_BROKER_HOST=mosquitto
- REDIS_HOST=ChirpStack_Redis
- POSTGRESQL_HOST=ChirpStack_Postgres
ports:
- 8580:8080
ChirpStack_Gateway_Bridge_EU868:
image: chirpstack/chirpstack-gateway-bridge:4
container_name: ChirpStack-Gateway-Bridge-EU868
restart: unless-stopped
ports:
- 8570:1700/udp
volumes:
- ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge
ChirpStack_REST_API:
image: chirpstack/chirpstack-rest-api:4
container_name: ChirpStack-REST-API
restart: unless-stopped
command: --server chirpstack:8080 --bind 0.0.0.0:8090 --insecure
ports:
- 8090:8090
depends_on:
- ChirpStack
ChirpStack_Postgres:
image: postgres:14-alpine
container_name: ChirpStack-Postgres
restart: unless-stopped
volumes:
- ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d
- ChirpStack_PostgresData:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=root
ChirpStack_Redis:
image: redis:7-alpine
container_name: ChirpStack-Redis
restart: unless-stopped
volumes:
- ChirpStack_RedisData:/data
volumes:
ChirpStack_PostgresData:
ChirpStack_RedisData:
So what is wrong here?
Thank you for help!