docker-compose config
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.otrecorder.environment contains {"OTR_HOST": "mosquitto"}, which is an invalid type, it should be a string
grep OTR docker-compose.yml
- OTR_HOST: mosquitto
- OTR_USER: "user"
- OTR_PASS: "paass"
The problem with the current solution is that it provide a monolytic
multiprogramm docker container. However the idiom of docker is to
have one service per docker container. If multiple services are
needed multiple docker container should be used. Docker-compose
makes this easily possible.
Another isse is that the container automatically creates certificates
and sets up encryption using a script. Also this violates docker
idioms, because certificate handling can be done using specific
containers like letsencrypt. It further makes it hard to include this
image into an existing and possible complex infastructure.
A further goal of mine would be to generate a Hassio addon for the
homeassistant project from this. The current dockerfile makes this
kind of hard.
What I did:
- Slimmed down the container to about 10MB by using alpine as a base
- Added a `docker-compose.yml` file that shows how to build and run
the container
- Added a `docker-compose-mqtt.yml` file to show how a mqtt broker
can be added. This shows how a plug and play solution using
docker could look like.
- Changed the docker image label to owntracks/recorder
- Added documentation on how to use and configure the image
- Simple travis file for possible automatic building in the near
future
- Removed automatic certificate handling
Instead provide `config` volume to allow configuration.
- Removed arm32v7 build
should be readded later but I dont have a setup for testing right
now
What might be added at some point:
- Example with nginx reverse proxy
- Example with letsencrypt certificate
This could also be an example for a complete plug and play
solution. Proxy, SSl, MQTT and Recorder.
- Default resolv.conf file with all default options and documentation
- Upload to docker hub
- Change name to owntracks/recorder
- Some more examples for eclipse mosquitto