Run Wordpress for Free Forever with Google Cloud and Docker

Run WordPress for Free Forever with Google Cloud and Docker



Run WordPress inside docker and docker-compose on Google Cloud Platform – Free and Forever.
This video shows how to get an f1-micro instance running on GCP that is configured correctly to run docker and docker-compose. Then WordPress is installed via docker-compose.

GitHub repo:

Google Cloud Platform:

Music:

36 thoughts on “Run WordPress for Free Forever with Google Cloud and Docker

  1. Friends, the GCP UI has changed a little when setting up the VM initially. To get the f1-micro instance, you need to select "Machine family > General Purpose", then "Series > N1", then "Machine Type > f1-micro". Thanks for all the subs!

  2. I can't connect to the external IP, it just tries loading for a while and then it fails.
    A wget http:localhost in the terminal shows just "connection to IP…" and then nothing, it stays that way.
    Anyone knows what to do here?
    I do have an indicator in the VM Instance menu in Google Cloud advising I should up my free instance because "there is more memory usage than usual" (?). Any idea how to reduce this, if this were the reason for the connection problem?

  3. 8:30curl Https://get.docker.com
    > install-docker.sh
    8:43chmod 755 install-docker.sh
    8:50sudo ./install-docker.sh
    9:10sudo usermod -aG docker admin
    9:30docker container ls

    9:40install docker-compose
    sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(name -s)-$(name -m)" -o /usr/local/bin/docker-compose
    10:18sudo 755 /usr/local/bin/docker-compose

  4. Hi chris… I'm having trouble running wordpress using docker containers. I have followed your steps one by one. But I'm not able to connect and unable to configure wordpress. I tried restarting the instance and ran docker-compose start as you suggested. Even though, I'm unable to connect and configure wordpress.

    Help me out please! 🙏🏼♥️

  5. It says Sign up for the free trial to start using Compute Engine when creating VM Instance.
    And the Free Trial is for 90 Days

  6. I just started with Google Cloud Platform and have been looking at installing WordPress with Docker. Since they give you $300. credit, I don;t think that the micro instance (if that's what you call it) is necessary. Running a larger instance would provide more room to connect some other websites to the main one while using the same network pathway (You only get one with the free 1-year trial). I don't know if you can do that, but I assume that you can since hosting providers let you have 5 websites or more on their basic accounts. Either way, using Docker seems to be the way to easily keep up to date with the new WordPress fixes and versions. It's a lot to learn. I've been at this for a while, first starting with WordPress Click To Deploy. I decided to try the Bitnami version as a result of watching a video. Right away I hit a dead end when the admin password did not work for the given admin user name or my name or any alternate name that people suggested. I wonder if the problem was rooted in my choice of a micro instance without going through the swap process. Anyway, I want to give this a try with the default midsized machine. Thanks for your help.

  7. This e book gives info about importance of immunity to fight infections
    Concept of immunity/ ojas in ayurveda.(click below link)
    https://amzn.to/2JA19f7

  8. Thank you so much, I too have learned a lot, followed your steps exactly, took a long time but got it right. I am a real noob that's why it took long, definitely following your tutorial how to transfer domain. Your tutorial has been the easiest to follow out of all the tutorials I looked and the most understandable. I like the fact that you did not presume that your viewers already know a whole whack and you did not use over technical terminology. Same question about SSL and would like to know how do I host multiple website or subdomains – community project I am working on presently? Would love easy to follow tutorials on these please?

  9. Hi Everyone if someone still need help on setup your website on Google Cloud whatsapp me +923079566566 I'll tell you very easy and command free method

  10. I've just set this up on my local machine, everything was fine until I docker-compose down and then tried to use wordpress again… Everytime I try to up the container, it starts on a different IP stating it couldn't use the IP or set server name… This means it runs on something like 172.20.0.1 which means I have to go into phpmyadmin and update the site settings in order to login… Any ideas why this is happening?? I guess once it's online in the cloud it would behave normally..

  11. It took few minutes to show up! I also restarted the instance, then executed the "docker-compose start"… then wait like 10min… btw, the speed is AWESOME!.. I will be putting a WordPress theme that I have to see how it handles the plugins and images.. but thanks a lot!

  12. Great Tutorial. Thank you for taking the time. I have learned a lot! Everything seems to work well except that I cannot enter wordpress from the navigation window when clicking on the ip address. It says refused connection. Any ideas why is not connecting? I modify the yml file and add the ip address but no lack.

  13. All commands:
    ============

    sudo fallocate -l 4G /swapfile

    sudo chmod 600 /swapfile

    sudo mkswap /swapfile

    sudo swapon /swapfile

    sudo apt install -y vim

    sudo vi /etc/fstab

    /swapfile none swap sw 0 0

    curl https://get.docker.com > install-docker.sh

    chmod 755 install-docker.sh

    sudo ./install-docker.sh

    sudo usermod -aG docker edik84

    docker container ls

    sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

    sudo chmod 755 /usr/local/bin/docker-compose

    docker-compose –version

    sudo apt install -y git

    git clone https://github.com/chrisbmatthews/wordpress-docker-compose.git

    cd wordpress-docker-compose/

    vi docker-compose.yml

    docker-compose up -d

    docker container ls

    docker-compose start

  14. Hi, I followed your guide and have it up and running. But I have a question. The new version of wordpress is up but it is asking for ftp credentials to update. How can we update the wordpress version?

  15. Thanks, it worked
    May i ask you a noob question ? This is first time i has used Docker.
    How can i manage database and files ?

Leave a Reply

Your email address will not be published. Required fields are marked *