Nextcloud and MariaDB | PlexGuide.com

Nextcloud and MariaDB

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

Caddy

Experienced
Original poster
Jan 19, 2018
58
29
Just wondering if Nextcloud is working, I setup with sqlite and everything seems to be working well, but when I install and try to use MariaDB the password doesnt seem to work from the wiki. any idea what the root mariadb password is so that I can change it?
 

MED120

Noobz
Apr 14, 2020
2
0
Ime new how do you use usenet ime used to torrents I don't know how to search and download I haven't installed any software just signed up to this website
 

Caddy

Experienced
Original poster
Jan 19, 2018
58
29
ignore this thread for anyone else looking if you go to portainer then go to the mariadb container there is a env variable for the password and it is listed there.
 
  • Like
Reactions: 1 user

chadthomas31

Citizen
Donor
Aug 5, 2018
8
2
Caddy,

Do you think you post some instructions on how to link nextcloud to mariaDB I was trying to figure it out based on some post on the web that used docker compose but to be frank, coding and programming at this level is a little outside my comprehension. I am not apposed to digging in and learning but I unfortunately don't have the time it would take me or sadly the intelligence (haha) to figure it out on my own.. I found this and was trying to how to figure out how to rearrange this code to fit in the PG scheme

Code:
version: '3'

services:

  proxy:
    image: jwilder/nginx-proxy:alpine
    labels:
      - "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
    container_name: nextcloud-proxy
    networks:
      - nextcloud_network
    ports:
      - 80:80
      - 443:443
    volumes:
      - ./proxy/conf.d:/etc/nginx/conf.d:rw
      - ./proxy/vhost.d:/etc/nginx/vhost.d:rw
      - ./proxy/html:/usr/share/nginx/html:rw
      - ./proxy/certs:/etc/nginx/certs:ro
      - /etc/localtime:/etc/localtime:ro
      - /var/run/docker.sock:/tmp/docker.sock:ro
    restart: unless-stopped
 
  letsencrypt:
    image: jrcs/letsencrypt-nginx-proxy-companion
    container_name: nextcloud-letsencrypt
    depends_on:
      - proxy
    networks:
      - nextcloud_network
    volumes:
      - ./proxy/certs:/etc/nginx/certs:rw
      - ./proxy/vhost.d:/etc/nginx/vhost.d:rw
      - ./proxy/html:/usr/share/nginx/html:rw
      - /etc/localtime:/etc/localtime:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
    restart: unless-stopped

  db:
    image: mariadb
    container_name: nextcloud-mariadb
    networks:
      - nextcloud_network
    volumes:
      - db:/var/lib/mysql
      - /etc/localtime:/etc/localtime:ro
    environment:
      - MYSQL_ROOT_PASSWORD=toor
      - MYSQL_PASSWORD=mysql
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
    restart: unless-stopped
 
  app:
    image: nextcloud:latest
    container_name: nextcloud-app
    networks:
      - nextcloud_network
    depends_on:
      - letsencrypt
      - proxy
      - db
    volumes:
      - nextcloud:/var/www/html
      - ./app/config:/var/www/html/config
      - ./app/custom_apps:/var/www/html/custom_apps
      - ./app/data:/var/www/html/data
      - ./app/themes:/var/www/html/themes
      - /etc/localtime:/etc/localtime:ro
    environment:
      - VIRTUAL_HOST=nextcloud.YOUR-DOMAIN
      - LETSENCRYPT_HOST=nextcloud.YOUR-DOMAIN
      - LETSENCRYPT_EMAIL=YOUR-EMAIL
    restart: unless-stopped

volumes:
  nextcloud:
  db:

networks:
  nextcloud_network:
 

Caddy

Experienced
Original poster
Jan 19, 2018
58
29
I actaully didnt need to program or edit anything.

I installed the mariadb instance included with Plexguide, and then installed nextcloud.

I used portainer to connect to mariadb and change the passwords and create a user with access to the needed database(follow nextclouds install instructions for this)

then I used the default install wizard from a fresh install of nextcloud.
when it asks for the instance and name makesure you use the internal network connection that shows up when you install the instance with plexguide

usually its is like mariadb as the network name and then the default port. confirm in portainer for the mariadb container what port to use as at one point it was different from the default.
 

ItherNiT

Citizen
Oct 22, 2019
14
2
Does nextcloud use google drive storage or the local machine storage?

The reason I ask, is because it looks as if it stores the data in its own /mnt folder.
 

Recommend NewsGroups

      Up To a 58% Discount!

Trending