Nextcloud with a MariaDB along with Nginx Proxy Manager and DuckDns Using A Portainer Stack

preview_player
Показать описание
In this video, we'll be using portainers stack feature to spin up Nextcloud with a MariaDB along with Nginx Proxy Manager and DuckDns. Portainer stack feature uses docker compose and that’s what we'll be using today. Its pretty straight forward so lets get to it.

#NextcloudTutorial #MariaDBSetup #NginxProxyManager #DuckDns #PortainerStack

##############################################################################################################################################

Docker Compose Config

version: '3.3'
services:
nextcloud:
image: nextcloud:latest
container_name: nextcloud
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- PATH/nextcloud/config:/config
- PATH/nextcloud/data:/data
depends_on:
- mariadb
restart: unless-stopped
mariadb:
image: linuxserver/mariadb
container_name: mariadb
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=NEXTCLOUDDBPASSWORD
- TZ=America/New_York
volumes:
- PATH/mariadb/config:/config
restart: unless-stopped
nginx-proxy-manager:
container_name: nginx-proxy-manager
ports:
- '81:8181'
- '80:8080'
- '443:4443'
volumes:
- 'PATH/nginx-proxy-manager:/config'
restart: unless-stopped
image: jlesage/nginx-proxy-manager

duckdns:
container_name: duckdns
environment:
- PUID=1000
- PGID=1000
- TZ=america/New_york
- SUBDOMAINS=SD
- TOKEN=TK
restart: unless-stopped
image: linuxserver/duckdns:latest

##############################################################################################################################################

Portainer Container

docker run -d \
--name=portainer \
-e PUID=1000 \
-e PGID=1000 \
-p 8000:8000 \
-p 9000:9000 \
--restart=always \
-v portainer_data:/data \
portainer/portainer-ce

##############################################################################################################################################

Nginx Proxy Manager Default credentials:
Password: changeme

Replace Variables:
NEXTCLOUDDBPASSWORD = NextCloud database password
PATH = mapped volumes
SD = subdomain for duckdns
TK = token for duckdns

##############################################################################################################################################

The below links are affiliate links. If you use one of the these links to make a purchase. My channel makes a small commission at no cost to you:

Рекомендации по теме
Комментарии
Автор

Wonderful 😃.... Referred many other videos but always ended up with error with mariadb. This worked well with first attempt. Thanks a lot 🙏.

dowdhgv
Автор

this is awesome. saved me so much time. thanks!

terenceseah
Автор

Great video. I almost got to the finish line but got an error when trying to create a new SSL cert in nginx. I've been trying to troubleshoot for the past hour with no joy.

hyllus
Автор

Skipped the NGINX config for mobile... other wise a good video.

CompleteHavocLLC
Автор

Hello great video was able to get this up and running and is working perfectly. One issue I been having which is probably something am over looking and it is adding an external drive. Every time I try to add the local drive it is not working it says something about needing to install SMB can you help?

anthonygonzalez
Автор

Hi, I have a couple noob questions, as I am not running Ubuntu so I was confused at a couple of steps in the beginning. @ 0:45 sec, you created a 'docker' folder in your window, can you tell me from where are you running that command?

I have Docker installed on my macOS, also with portainer already installed using the macos Terminal, so I didn't use putty to install portainer like you did, and that's where I got lost. I'd like to make that 'docker' directory too to get that PATH in order to run the stack like you did in the video. Any help is greatly appreciated!

vinhpham
Автор

Never been able to get NGINX to work with AT&T. Though they say otherwise, I believe they are affecting. Everything is set exactly, but I can't get it to punch through my router.

tlutrick
Автор

thanks for Vid. I was able to install it but stuck in SSL cert creation. I'm getting an error: There is a server found at this domain but it does not seems to be Nginx Proxy Manager. Please make sure your domain points to the IP where your NPM instance is running. I've set port forwarding 80 and 443 to the box where nginx and nextcloud reside, but still a no go. any thoughts? thanks

thr
Автор

Sorry for a very n00b question. I installed this and have it up and running successfully! However, I want to "uninstall" nextcloud from this stack and just keep nginx. Is there a recommended way to achieve this? I have nginx setup with 6 reverse proxy and don't want to break it. Thank you in advance for helping to answer this question.

mikel
Автор

Great video...Working on the first try. Only 1 issue so far is the android app cant log in. I get strict mode no http connection allowed. Any ideas? Thank you!!

flipastock
Автор

1:15 where did you get the docker compose config file from? It seemed like it appeared from thin air.

BrianThomas
Автор

I'm already using DuckDNS for home assistant. How do I access 2 seperate servers from the same DuckDNS domain name?

tellymonster
Автор

hi, my nginx, nextcloud, nextclouddb, duckdns containers are running ok. but i am unable to host nextcloud over https i.e unable to create ssl cert thru duckdns subdomain. it gives INTERNAL ERROR.

pls assist

yankieddl
Автор

I tried tons of ways to run Nextcloud with Mariadb, nginx, reverse proxy and all that on my raspberry pi and i have yet to succeed. It just aint possible. And then i tried to follow your guide here since it was pretty straightforward but it just wont work.

The first problem i encountered was that i was unable to compose the file using portainer since it does not support higher versions then 2.0 for me. Dont really know why that is. I then decided to use it with docker compose instead using docker-compose up -d. That made everything become visible and so on. I did notice that there were no ports assigned to any container. I however tried to connect to nginx manager but that didnt work and that makes me stuck.

This is all done on my Raspberry Pi 4 with SSD drives.

I have tried so many tutorials, but no tutorial that enables https secure connection works. I even looked up specific versions for arm processors but that made no difference either.

I am just about to give this up. I have owncloud running on my Raspberry pi 3b+ and i just want to switch to nextcloud instead. Difference is that i am not using docker on my RPI3b+ but since everyone are having such a pleaseant time with docker i was eager to try it out. So far i just dont get it for regular use. Its tons of stuff to do just to make a tiny thing happen.

jonasohrfeldt
Автор

My 'linux server' is just a version of Ubuntu on my WSL. Is this still possible while following this tutorial? I keep getting an error when creating an SSL Certificate. Do I need to download certbot, or set up an email with certbot first?

wchorski
Автор

You lost me at 4:25. I could not login to Nginx.

danr
Автор

I have a problem what to do ERR_TOO_MANY_REDIRECTS

lukpc