... | ... | @@ -199,3 +199,19 @@ You can stop and remove the stack with the following command: |
|
|
```
|
|
|
|
|
|
To start or stop only single services defined inside your config you can append the service names to the `up` or `down` commands.
|
|
|
|
|
|
## Switching to Docker on the Pis
|
|
|
|
|
|
1. Connect to the Pi via SSH
|
|
|
2. `cd` into the repository directory (clone if necessary)
|
|
|
3. `git pull` and `git switch followup/dockerize` (the later is not necessary when the branch is merged)
|
|
|
4. Create a `docker-compose.yml`. Use `docker-compose.sample.yml` for reference.
|
|
|
5. `sudo systemctl stop i4.0-demo.service`
|
|
|
6. `sudo systemctl disable i4.0-demo.service`
|
|
|
7. Install docker if necessary: `curl -sSL https://get.docker.com | sh`
|
|
|
8. In case the following doesn't work, a reboot can help.
|
|
|
9. `sudo docker-compose build`
|
|
|
10. `sudo docker-compose up -d`
|
|
|
|
|
|
You can also use the default docker commands.
|
|
|
As long as the containers are started with `restart: always` or `restart: unless-stopped` they will start on boot. |
|
|
\ No newline at end of file |