Select a result to preview
https://www.youtube.com/watch?v=fpr37FJSgrw
https://www.youtube.com/watch?v=OCLq62KOqNU
https://docs.docker.com/engine/network/packet-filtering-firewalls/#docker-and-ufw
advanced manual install with learnlinuxtv
https://www.youtube.com/watch?v=fpr37FJSgrw
this is on linode, oracle cloud does creates a user called ubuntu by default
# add a new user
adduser <user>
# add user to sudo group
usermod -aG sudo <user>
# checking if user added to sudo currectly
groups <user>
vi /etc/hostname
remove localhost and add domain name to that file (cloud.linuxwith.in)
add this to hosts file for making the services resolve itself
127.0.1.1 cloud.linuxwith.in cloud
sudo apt update && sudo apt dist-upgrade
firewalldhas a lot more features and greater controller thanufw
sudo apt -y install firewalld
sudo ufw disable
sudo firewall-cmd --state
# open ports
sudo firewall-cmd --zone=public --permanent --add-port=80/tcp
sudo firewall-cmd --zone=public --permanent --add-port=443/tcp
sudo firewall-cmd --zone=public --permanent --add-port=8080/tcp
sudo firewall-cmd --reload
sudo firewall-cmd --list-ports
sudo sed -i 's/FirewallBackend=nftables/FirewallBackend=iptables/g' /etc/firewalld/firewalld.conf
sudo systemctl restart firewalld docker
sudo reboot
curl -fsSL https://get.docker.com | sudo sh
install docker compose
https://docs.docker.com/compose/install/standalone/
WARNING: get new link from about location
curl -SL https://github.com/docker/compose/releases/download/v2.29.6/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
add user to docker group so we dont need to use sudo
sudo usermod -aG docker ubuntu
now logout and login and check group docker is added to current user's(ubuntu) group
ref: https://www.youtube.com/watch?v=RBVcnxTiIL0
create folder ~/docker/nginxproxymanager
mkdir -p docker/nginxproxymanager/
https://nginxproxymanager.com/setup/
copy that dockercompose file and put it in docker-compose.yml file
then run
docker-compose up -d
go to ip address/domain name:81 and login with default username and password
Email: [email protected]
Password: changeme
then immediately change those password
create folder docker/nextcloud
mkdir -p docker/nextcloud
get latest docker compose file from next cloud AIO
https://github.com/nextcloud/all-in-one/blob/main/compose.yaml
curl that raw text > docker-compose.yml
to work with reverse proxy
changes needed to be done to work with reverse proxy
https://www.youtube.com/watch?v=OCLq62KOqNU check this for explanation and chage accounding to below
https://github.com/nextcloud/all-in-one/discussions/588
services:
nextcloud-aio-mastercontainer:
image: nextcloud/all-in-one:latest
init: true
restart: always
depends_on:
- nextcloud-aio-db
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 8080:8080 # Nextcloud AIO web interface, make sure this port is not in conflict
environment:
- APACHE_PORT=11000 # Ensure this port doesn't conflict with existing services
- APACHE_IP_BINDING=127.0.0.1
- NEXTCLOUD_DATADIR=/mnt/nextclouddata
- NEXTCLOUD_ADDITIONAL_APKS=imagemagick exiftool
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
go to https://:8080/ copy the login passcode and login with it. now go to https://:81/ and create a new host mapping from cloud. to 11000go to ssl tab
ssl certificate - Request a new SSL certificate
check "force SSL" and "HTTP/2 Supprot" and "I Agree" buttons
if it goes away without any errors, everything is good (takes some time)
give the domain name cloud.linuxwith.in