Install Docker Compose Raspberry Pi 4

/ Comments off

So you can installl the docker engine and just work with docker but when you want to use docker compose you need to install it seperatly (where the installation of the engine is a prerequisition (you've alread done this)). So try now the link I gave in the answer (you can use curl or pip to install docker-compose) – lvthillo Apr 18 '16 at 6:25.

In this post we’ll look at how to Install NextCloud on a Raspberry Pi 4 with OpenMediaVault and Docker.

  • 在测试或开发环境中 Docker 官方为了简化安装流程,提供了一套便捷的安装脚本,Raspberry Pi OS 系统上可以使用这套脚本安装,另外可以通过 -mirror 选项使用国内源进行安装: 若你想安装测试版的 Docker, 请从 test.docker.com 获取脚本.
  • The database that is being used in the docker-compose file on the site isn’t compatible with ARM processors, so we’ll need to change that in a bit. But first, we need to get logged in to our Raspberry Pi’s Portainer. This tutorial assumes that you already have Docker and Portainer installed, most likely via OpenMediaVault.

We’re going to use the setup from https://hub.docker.com/_/nextcloud, but we’re going to change one thing: the database.

The database that is being used in the docker-compose file on the site isn’t compatible with ARM processors, so we’ll need to change that in a bit.

Install Docker Compose Raspberry Pi 4 Download

But first, we need to get logged in to our Raspberry Pi’s Portainer. This tutorial assumes that you already have Docker and Portainer installed, most likely via OpenMediaVault.

Prerequisites

  • You’ll need a domain name.
  • You’ll need to a CloudFlare account with your domain name pointed to it.
  • You’ll need to point a subdomain to your home’s IP address. Make sure that Proxy Status is “DNS Only”. Also make sure that you change SSL/TLS to “Full”.
  • You’ll need to forward ports 80 and 443 to your Raspberry Pi.
  • You’ll need NGINX Proxy Manager installed.
  • You’ll need to create a volume in OpenMediaVault for your NextCloud file storage.

Install Docker Compose Raspberry Pi 4 Windows 10

Installation

Open Portainer on your Raspberry Pi and create a new Stack.

Paste the following into your new stack:

Change the few things as noted above.

Click the “Deploy the Stack” button.

Next, go to your NGINX Proxy Manager dashboard. Create a new Proxy Host.

  • Fill in the domain name (or subdomain) you designated for your NextCloud install.
  • Scheme should be http.
  • Forward Hostname/IP should be your Raspberry Pi’s IP address.
  • Foward port should be 8080.
  • Click the “Block Common Exploits” toggle.

Go to the SSL tab.

  • Change “None” to “Request a New SSL Certificate”.
  • Click the “Force SSL” and “HTTP/2 Support” toggles.
  • You can click the HSTS toggles if you’ve enabled HSTS in CloudFlare.
  • Click “Save”.

After a moment, you should see that everything has deployed correctly.

DockerCompose

Next, go to https://nextcloud.yourdomain.com (change this to your actual domain) and you should see the NextCloud install page.

  • Enter an Admin username and password.
  • Change the database type to MySQL/MariaDB.
  • Enter the username, password, and database name as you have them in your Portainer Stack.
  • Change Database location to from “localhost” to “db” (without quotes).
  • Toggle the option for additional app installation to meet your needs.
  • Click “Finish setup”.

At this point, you can go get some lunch or something as the install process will take a while since we’re on a 4 core ARM processor.

Once the install is complete, you’ll be taken to the NextCloud dashboard and then you should be good to go!

30 Sep 2019

Home Assistant on Docker is easier than running it with HASSIO IMO.

Here is a high-altitude overview of how I run Home Assistant -and- then I’ll dig into the details of my setup.

  • Setup Raspbian with Docker and Docker-Compose
  • Plugin my Aeon Z-wave script; make sure it’s on /dev/ttyACM0
  • Setup scripts for Docker-Compose
  • Setup scripts so it runs on startup
  • Create a backup process

Okay, details… here is how I run Home Assistant on Docker on a Raspberry Pi 4.

  • Install Raspbian on the Raspberry Pi 4.
  • Install Docker and Docker-Compose.
  • Create /root/docker-compose.yml consisting of the following (NOTE: I use the Aeon z-wave stick at /dev/ttyACM0):
  • Create the following file for automating the service on startup /etc/systemd/system/home-assistant.service

Install Docker Compose Raspberry Pi 4 Downloads

  • Run this systemctl enable home-assistant.service
  • Run this systemctl enable docker
[ dockerhome-automationhome-assistant ]

Related Posts