Nextcloud 15 (docker) with MariaDB

Nextcloud is an open source, self-hosted file sync and share and communication app platform. Access & sync your files, contacts, calendars & communicate and collaborate across your devices. You decide what happens with your data, where it is and who can access it!
Post Reply
asl
Posts: 5
youtube meble na wymiar Warszawa
Joined: Tue May 17, 2016 4:37 pm

Nextcloud 15 (docker) with MariaDB

Post by asl »

It would be nice if the dockerized nextcloud could make use of the MariaDB service of ADM.
fritzboxuser
Posts: 49
Joined: Mon Sep 07, 2015 6:40 pm

Re: Nextcloud 15 (docker) with MariaDB

Post by fritzboxuser »

im sure its possible with a docker sql database and docker compose
asl
Posts: 5
Joined: Tue May 17, 2016 4:37 pm

Re: Nextcloud 15 (docker) with MariaDB

Post by asl »

Yes, that's possible for sure. But there's already a mariadb running, so it makes more sense to use that one than fire up a new one for every service that needs one. RAM is a tad limited here.

The challenge is how to map the host's mariadb port into the nextcloud docker container without exposing the port also to the outside.

Alternative: mount the mariadb socket into the nextcloud container.
jauling
Posts: 52
Joined: Wed Feb 01, 2017 1:34 am
Location: Amsterdam

Re: Nextcloud 15 (docker) with MariaDB

Post by jauling »

asl wrote:Yes, that's possible for sure. But there's already a mariadb running, so it makes more sense to use that one than fire up a new one for every service that needs one. RAM is a tad limited here.

The challenge is how to map the host's mariadb port into the nextcloud docker container without exposing the port also to the outside.

Alternative: mount the mariadb socket into the nextcloud container.
Is it possible to use a different approach - install the Docker CE app for ADM, then use the Nextcloud Docker image, from https://github.com/nextcloud/docker?
DrMartinus
Posts: 34
Joined: Thu Jun 29, 2017 5:07 pm

Re: Nextcloud 15 (docker) with MariaDB

Post by DrMartinus »

asl wrote:Alternative: mount the mariadb socket into the nextcloud container.
How to do that?
Asustor AS6104T
asl
Posts: 5
Joined: Tue May 17, 2016 4:37 pm

Re: Nextcloud 15 (docker) with MariaDB

Post by asl »

Is it possible to use a different approach - install the Docker CE app for ADM, then use the Nextcloud Docker image, from https://github.com/nextcloud/docker?
This is pretty much exactly what the ADM nextcloud app is doing.
> Alternative: mount the mariadb socket into the nextcloud container.

How to do that?
I was hoping that the ADM nextcloud maintainers could answer that. But basically the start script would just pass the mount option to the docker run command. And the /etc/php7/conf.d/mysql.ini would need to specify the path to the mariadb socket, as documented here: https://docs.nextcloud.com/server/stabl ... ation.html
Post Reply

Return to “Nextcloud”