Host YOUR OWN WEBSITE! w/ Proxmox, Portainer, Nginx, Pork Bun! (Start TO Finish FULL GUIDE)

preview_player
Показать описание
Don't pay anyone ever again to host your website! HOST it YOURSELF straight from your HOME LAB!

Hosting your own website doesn't have to be difficult at all. Follow this full guide step by step and you will have your own website hosed in no time!
Before getting to hosting, you will need to of purchased a domain name, downloaded ubuntu server and will have to do some port forwarding in your router, we show all this in the guide above!

Once the virtual machine running ubuntu server is up and running, we will install docker on the server then proceed to install portainer. (Dockers GUI). Then will wright a stack for WordPress (Website builder 100% FREE) then set up a proxy manger that directs traffic to our chosen domain name to the IP address of the server running the website. All commands and links are below to the ubuntu server and install docker and portainer, the word press stack is also below to copy and past!.

We will have to SSH into the server to copy and past commands, we use putty to do this.

Once portainer is installed go to the settings and replace the application template link to get nginx:

#hosted #website #linux #server #wordpress #proxmox #nginx #putty #ssh #porkbun #portainer #docker #selfhosted #domain

Installing Docker and Portainer:
# update software repositories
apt update
# install available software updates
apt upgrade -y
# clean apt cache
apt clean
# reboot the container
reboot now

DOCKER INSTALL:
# install prerequisites
apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y
# add docker gpg key
# add docker apt repository
# update software repositories
apt update
# install docker
You now can run docker containers from the command line

Portainer:
# create a working directory for portainer
mkdir ~/docker/portainer_data -p
# run the portainer container
# output the ip docker host address
ip addr

WordPress Stack:
version: '3'

services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
networks:
- wpsite
# phpmyadmin
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
ports:
- '8080:80'
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: password
networks:
- wpsite
# Wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- '8977:80'
restart: always
volumes: ['./:/var/www/html']
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
networks:
- wpsite
networks:
wpsite:
volumes:
db_data:

Stay Connected with US!
Рекомендации по теме
Комментарии
Автор

Run WP on docker is best for performance? i think install web server directly on VM for speed better?

vanhoatvdat
Автор

All of that to end using wordpress... such a good taste until the end.
Lol, just messing with you. Cool stack! I'm looking into something like this.

SRG-Learn-Code
Автор

I need to start playing with Docker again. I should finish modifying a part so I can mount a PSU in the chassis, set up a second node for Proxmox, cluster them, setup Docker VMs and cluster them also. *poof* High availability.. kinda. Kinda because I only have one ISP. 🤣

SpookyLurker
Автор

Do you run website on docker of VM (199)?

vanhoatvdat