Docker Containers, Plex, Nextcloud, & Let's Encrypt = Awesome Server Setup
In this video I walk through the docker-compose file I use on my server, and how it makes my life better.
We've listed best web hosting services you can safely use in 2020 and beyond. Read our web hosting reviews on speed (ms), uptime (%) and customer support.
In this video I walk through the docker-compose file I use on my server, and how it makes my life better.
So, no URL to reach Plex with nginx?
version: '2'
services:
sslproxy:
image: danieldent/nginx-ssl-proxy
restart: always
environment:
#UPSTREAM
SERVERNAME: nextcloud.sample.com
#EXTRANAMES
ports:
– "80:80"
– "443:443"
volumes:
– /docker/nginx/conf:/etc/nginx/conf.d
– /docker/letsencrypt:/etc/letsencrypt
mysql:
image: mysql
volumes:
– /localpath/mysql:/etc/letsencrypt
environment:
– MYSQL_ROOT_PASSWORD=rootpassword
– MYSQL_DATABASE=nextcloud
– MYSQL_USER=nextcloud
– MYSQL_PASSWORD=password
nextcloud:
image: wonderfall/nextcloud
environment:
– UID=1000
– GID=1000
– UPLOAD_MAX_SIZE=100G
– APC_SHM_SIZE=128M
– OPCACHE_MEM_SIZE=128
– CRON_PERIOD=15m
– TZ=Europe/Berlin
– ADMIN_USER=admin
– ADMIN_PASSWORD=password
– DOMAIN=localhost
– DB_TYPE=mysql
– DB_NAME=nextcloud
– DB_USER=nextcloud
– DB_PASSWORD=password
– DB_HOST=mysql
depends_on:
– mysql
volumes:
– /docker/nextcloud/data:/data
– /docker/nextcloud/config:/config
– /docker/nextcloud/apps:/apps2
– /docker/nextcloud/themes:/nextcloud/themes
ports:
– 8888:8888
plex:
image: plexinc/pms-docker
restart: unless-stopped
environment:
– TZ=Europe/Berlin
– PLEX_CLAIM=YOURKEY
network_mode: host
volumes:
– /docker/plex/filedatabase:/config
– /docker/plex/transcode/tmp:/transcode
– /docker/nextcloud/data:/data
ports:
– 32400:32400
I would live to use your docker-rsync image!
I am about to build my new media server and I would like to avoid dropping $$ on a raid card.
Do you configure all your sub-domains manually in domain registrar or you are using NS? Bind9?
can you share files?
I don't understand why you don't share your code online…if you want to teach the stuff.
Any chance we can get a github link please? Cheers!
Have a look at ZFS. It makes software raid very painless. Literally 5 minutes to have it up on a fresh machine.
I'm looking at moving my Nextcloud server on a Raspberry Pi to run under Docker so I can add additional service, as such this is a really useful video for me, thanks.
I'd be interested to know how you update your Nextcloud version with this setup, and also if you have any firewall on the host?
Please more videos like this (I wish I'd found your channel earlier) 🙂
Do you have to own real domain like nextcloud.sample.com to make it work?
This is an amazing video. 2 thumbs up! For anybody whos reading this, I've already built a Nextcloud setup with let's encrypt on a Rasp1 and it was working quite well. However, I wanted to build the same kind of server but with exactly what is suggested here (docker, plex…) I've unsuccessfully built a Plex server on a linux computer (was my first steps in linux) so I'm wondering what you guys suggests. I know just a little of docker. Where should I start ?
This is a pretty good Docker compose tutorial too! Would love to have access to the image.
Thanks for the video!
Show it working, looking at a conf file is lame.
thanks for this!
Have everything working great! Quick question if you know the answer. using the NGINX image. if i download the proxy.config file how do I use to to setup other SSL sites? Do I need to just copy and paste and change the settings for each site? If so Do I make any changes on the compose.yml file?
Noticed you didnt use the link command to link the SQL to Nextcloud. Is this command not needed anymore?
Any chance you can put this yaml file online? I’d like to run a very similar setup
Did you run into permissions issues when adding the external storage? I can't seem to get NC to understand that it's allowed to access the directory.
Really great video, well explained and to the point. Thank you!
how do you get rid of index.php on nextcloud URL.
Great video!… can you share your setup in a github repo?