All supported containers have templates stored in the hidden directory ~/IOTstack/.templates
Each template folder may contain:
- service.yml file
- Dockerfile if needed (instructions on how to build the container image)
- Other files as needed for that particular container
When the menu is run with ./menu.sh
and containers are selected, the contents of the relevant service.yml file are copied to ~/IOTstack/docker-compose.yml
When the stack is started, the contents of docker-compose.yml
are used.
If a container image needs to be built, and there is a related Dockerfile, that Dockerfile is used to create the image with the included specific instructions.