Most of this came from an article that I can't seem to find anymore
- create a google cloud account / turn on compute
- create a free tier compute instance
- purchase a domain
- set up a static ip (costs ~ $3.60/month)
- set up dns
- ssh into compute instance
- install docker in rootless mode
sudo apt-get install -y dbus-user-session# don't remember if this is neededcat <<EOF | sudo sh -x
apt-get -y install uidmap
EOFcurl -fsSL https://get.docker.com/rootless | sh
- allow rootless docker user to bind low port numbers:
sudo setcap cap_net_bind_service=ep $(which rootlesskit) - install git if not already installed
- set up swapfile so that wordpress has more memory to work with
sudo fallocate -l 4G /swapfilesudo chmod 600 /swapfilesudo mkswap /swapfilesudo swapon /swapfilesudo vi /etc/fstab- add to the end of the file
/swapfile none swap sw 0 0
- set up crontab to restart server every day to deal with memory leaks and large swapfiles slowing down the site
sudo crontab -e0 0 * * * /sbin/shutdown -r
git clone https://github.com/Chovin/nginx-proxy-snippet.gitcdinto it and set up.envdocker compose up -dcd ..git clone https://github.com/Chovin/wordpress-docker-compose.gitcdinto it and set up.envdocker compose up -d