Microservice to provide the Space API JSON from our MQTT topic status.
Configuration is done using environment variables:
PORT
: Target port when used with docker-compose (default8080
)MQTT_BROKER
: MQTT broker server (defaultmqtt
)MQTT_PORT
: MQTT broker port (default1883
)MQTT_TOPIC_STATUS
: MQTT topic to listen for status messages (defaultstatus
)MQTT_TOPIC_LASTCHANGE
: MQTT topic to listen for last change messages (defaultlastchange
)
docker run --rm -it \
-p 8080:8080 \
netz39/spaceapi-service
To run with docker-compose copy .env.template
to .env
and edit the necessary variables. Then start with:
docker-compose up --build
Please note that this compose file will rebuild the image based on the repository. This is helpful during development and not intended for production use.
When done, please don't forget to remove the deployment with
docker-compose down
- Stefan Haun (@penguineer)
MIT © 2024 Netz39 e.V. and contributors