IOTstack is a builder for docker-compose to easily make and maintain IoT stacks on the Raspberry Pi.
See Getting Started in the IOTstack Wiki. It includes:
- A link to Andreas Spiess videos #295 and #352.
- How to download the project (including constraints you need to observe).
- How to migrate from the older gcgarner/IOTstack repository.
- Running the menu to install Docker and set up your containers.
- Useful Docker commands (start & stop the stack, manage containers).
- Stack maintenance.
Networking under both new menu (master branch) and old menu (old-menu branch) has undergone a significant change. This will not affect new users of IOTstack (who will adopt it automatically). Neither will it affect existing users who do not use the menu to maintain their stacks (see adopting networking changes by hand below).
Users who do use the menu to maintain their stacks will also be unaffected until the next menu run, at which point it will be prudent to down your stack entirely and re-select all your containers. Downing the stack causes Docker to remove all associated networks as well as the containers.
These changes mean that networking is identical under both old and new menus. To summarise the changes:
-
Only two internal networks are defined – as follows:
- "default" which adopts the name
iotstack_default
at runtime. - "nextcloud" which adopts the name
iotstack_nextcloud
at runtime.
If you are using docker-compose v2.0.0 or later then the
iotstack_nextcloud
network will only be instantiated if you select NextCloud as one of your services. Earlier versions of docker-compose instantiate all networks even if no service uses them (which is why you get those warnings at "up" time). - "default" which adopts the name
-
The only service definitions which now have
networks:
directives are:- NextCloud: joins the "default" and "nextcloud" networks; and
- NextCloud_DB: joins the "nextcloud" network.
All other containers will join the "default" network, automatically, without needing any
networks:
directives.
If you maintain your docker-compose.yml
by hand, you can adopt the networking changes by doing the following:
-
Take your stack down. This causes Docker to remove any existing networks.
-
Remove all
networks:
directives wherever they appear in yourdocker-compose.yml
. That includes:- the
networks:
directives in all service definitions; and - the
networks:
specifications at the end of the file.
- the
-
Append the contents of the following file to your
docker-compose.yml
:~/IOTstack/.templates/env.yml
For example:
$ cat ~/IOTstack/.templates/env.yml >>~/IOTstack/docker-compose.yml
The
env.yml
file is the same for both old-menu and master branches. -
If you run the NextCloud service then:
-
Add these lines to the NextCloud service definition:
networks: - default - nextcloud
-
Add these lines to the NextCloud_DB service definition:
networks: - nextcloud
-
-
Bring up your stack.
Please use the issues tab to report issues.
We have a Discord server setup for discussions: IOTstack Discord channel if you want to comment on features, suggest new container types, or ask the IOTstack community for help.
If you use some of the tools in the project please consider donating or contributing on their projects. It doesn't have to be monetary. Reporting bugs and creating Pull Requests helps improve the projects for everyone.