Skip to content

Instantly share code, notes, and snippets.

@iSkore
Last active January 30, 2023 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iSkore/f2bbf263aa7f9d150db2137693a28b16 to your computer and use it in GitHub Desktop.
Save iSkore/f2bbf263aa7f9d150db2137693a28b16 to your computer and use it in GitHub Desktop.
Install nextcloud on Raspberry Pi
version: '3.9'
networks:
nextcloud_network:
driver: bridge
services:
nextcloud_database:
container_name: nextcloud_database
hostname: db
image: postgres:latest
restart: always
ports:
- "5432:5432"
volumes:
- /mnt/raidx/nextcloud_database:/var/lib/postgresql/data
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=password
nextcloud:
container_name: nextcloud
hostname: nextcloud
image: nextcloud:latest
restart: always
ports:
- 8080:80
volumes:
- /mnt/raidx/nextcloud:/var/www/html
sudo apt update -y
sudo apt upgrade -y
sudo apt install vim wget jq -y
# set DNS
# sudo vim /etc/resolv.conf
# set static IP (requires reboot)
# sudo vim /etc/dhcpcd.conf
# if using Argon EON case
# curl https://download.argon40.com/argoneon.sh | bash
# sudo apt update -y
# sudo apt upgrade -y
wget -O - https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/installScript/master/install | sudo bash
# Get docker
# Create docker user group
sudo groupadd docker
# Add current user to the docker group
sudo gpasswd -a $USER docker
# RAID if desired -> https://gist.github.com/leandrofilipe/f9636be272f97d414652ce1f21e6b1f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment