Site icon Learning & Doing

Cara Install Nextcloud pada Proxmox

proxmox

“Cara Install Nextcloud pada Proxmox”

Pengantar

Nextcloud adalah platform open-source yang menyediakan layanan cloud self-hosted untuk menyimpan dan berbagi berbagai jenis file, serta kolaborasi dalam konteks pribadi atau bisnis. Platform ini memungkinkan pengguna untuk menyimpan data mereka sendiri di server yang mereka kendalikan, daripada bergantung pada penyedia layanan cloud pihak ketiga seperti Google Drive atau Dropbox.

Fitur utama dari Nextcloud termasuk:

  1. Penyimpanan File: Pengguna dapat mengunggah, menyimpan, dan mengelola berbagai jenis file, termasuk dokumen, foto, video, dan lainnya, di server Nextcloud mereka sendiri.
  2. Kolaborasi: Nextcloud memungkinkan pengguna untuk berkolaborasi dalam pengeditan dokumen, berbagi file dengan pengguna lain, dan melakukan komunikasi terintegrasi melalui kalender, kontak, dan aplikasi perpesanan.
  3. Sinkronisasi: Nextcloud menyediakan sinkronisasi file yang mudah antara berbagai perangkat, sehingga pengguna dapat mengakses data mereka dari mana saja dan kapan saja.
  4. Keamanan: Platform ini menawarkan berbagai fitur keamanan termasuk enkripsi end-to-end, otentikasi dua faktor, kontrol akses berbasis peran, dan audit log untuk melindungi data pengguna.
  5. Ekstensibilitas: Nextcloud dapat diperluas dengan berbagai aplikasi dan plugin tambahan untuk menyesuaikan fungsionalitas platform sesuai dengan kebutuhan pengguna.
  6. Self-Hosted: Salah satu keunggulan utama Nextcloud adalah bahwa pengguna memiliki kontrol penuh atas data mereka sendiri dengan menginstal dan menjalankan platform ini di server atau infrastruktur mereka sendiri, baik itu di dalam perusahaan atau di lingkungan pribadi.

Dengan kombinasi fitur-fitur ini, Nextcloud menjadi solusi yang populer bagi individu, organisasi, dan perusahaan yang ingin mengontrol data mereka sendiri, meningkatkan produktivitas kolaboratif, dan memperkuat keamanan dan privasi.

Cara Install Nextcloud pada Proxmox

apt update && apt upgrade -y
apt install curl -y
curl -sSL https://get.docker.com/ | sh
docker run --restart always -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
http://[CONTAINER_IP]:9000

Docker Container Configuration: Nextcloud pada Proxmox

version: '2'

services:
  db:
    image: mariadb:10.5
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - /var/lib/docker/volumes/Nextcloud_Database:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_PASSWORD=password
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

  app:
    image: nextcloud
    restart: always
    ports:
      - 8080:80
    links:
      - db
    volumes:
      - /var/lib/docker/volumes/Nextcloud_Application:/var/www/html
    environment:
      - MYSQL_PASSWORD=password
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db

How to Install Nextcloud on Proxmox

In this tutorial, we’re going to look at how to install Nextcloud on Proxmox.

Nextcloud is one of the most popular applications you can use to provide local functionality similar to cloud offerings like Dropbox, Office 365, or Google Cloud. Nextcloud runs really well on Docker, and if you’re using Proxmox, you can easily configure an LXC Container to run Docker, then install Nextcloud on top of it. From a resource usage perspective, this is my favorite way of running Nextcloud on Proxmox.

Table of Contents show

What is Nextcloud?

Nextcloud is an open-source software suite that provides online data storage and applications like calendars, contacts, and photo galleries. It’s a self-hosted solution, meaning that instead of relying on third-party cloud services, users install and run it on their own servers.

The primary function of Nextcloud is file hosting but with user-controlled privacy. It allows users to store files, sync them between devices, and share them with others. Users can extend its functionality through tons of applications available in its app store. We’ll look at how to install Nextcloud on Proxmox below.

Configure Docker on Proxmox

You can use any Linux distribution you’d like, but we’ll be utilizing Debian 11 below to install Docker.

1. After logging into Proxmox, select the storage location you want to store the container template, select CT Templates, then select Templates.

2. Search for Debian, select debian-11-standard, and Download.

3. After the template downloads, select Create CT to create a new container.

4. Enter a hostname and enter the Password. This password is used to log in to the root user account. When you’re done configuring everything, select Next.

5. Select the Template, then select Next to proceed.

6. Enter a Disk Size for this LXC container, then select Next. Since this is for Nextcloud, you might want to set it for a bigger total size than I have below!

7. Enter the Cores for the CPU, then select Next.

8. Set the total Memory you’d like to use for this container, then select Next.

NOTE: This is the limit that this container can use.

9. In the Network section, select DHCP for IPv4 and IPv6 (you can also set them manually if desired), then select Next until you get to Confirm.

NOTE: The DNS section can be configured as well if you’d like.

10. Confirm the settings, then create the container by selecting Finish!

11. In the settings of the LXC Container that was just created, select Options, Edit, then Features.

12. Enable the keyctl setting, then select OK. You can now start the container!

13. After the container starts, log in with the username root and the password specified in step four. Then, run the commands below, in order, to install Docker, then Portainer (which we’ll be using to install Nextcloud).

apt update && apt upgrade -y
apt install curl -y
curl -sSL https://get.docker.com/ | sh
docker run --restart always -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

14. Access Portainer by navigating to the container IP address and port 9000. If you aren’t sure what the IP address of the container is, run the command below to get the IP address.

ip addr
http://[CONTAINER_IP]:9000

Docker Container Configuration: Nextcloud on Proxmox

Now that Docker and Portainer have been installed, we can install Nextcloud on Proxmox.

1. After Portainer has been opened, select Stacks, and Add Stack to create a new stack. We will use a Stack to create the Nextcloud container and database.

2. Create the stack and set the name as nextcloud.

3. Paste the contents below into the web editor. A few notes:

version: '2'

services:
  db:
    image: mariadb:10.5
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - /var/lib/docker/volumes/Nextcloud_Database:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_PASSWORD=password
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

  app:
    image: nextcloud
    restart: always
    ports:
      - 8080:80
    links:
      - db
    volumes:
      - /var/lib/docker/volumes/Nextcloud_Application:/var/www/html
    environment:
      - MYSQL_PASSWORD=password
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db

4. After all changes have been made, select Deploy the stack at the bottom to create the two containers.

5. The container should now be created! You’ll have one for the Nextcloud container and one for the database.

Nextcloud Application Configuration

http://[CONTAINER_IP]:8080

Penutup

Sahabat Blog Learning & Doing demikianlah penjelasan mengenai Cara Install Nextcloud pada Proxmox. Semoga Bermanfaat . Sampai ketemu lagi di postingan berikut nya.

Exit mobile version