by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 1 year ago )

At present, this site is set up on the Nas of my own home, and it is operating through the Docker container environment.
He uses my own simple container management environment php
https://github.com/DevinY/phpenv

Below the grid line is old information



I can't stand Bulehost's slow speed, and I have pulled DNS back to be directly managed by networksolutions.
Adjust the DNS setting TTL to two hours, maybe it will be converted to other places..

Here are a few things that I personally don't like about Bulehost:
1. The host should be in the United States, and the speed is too slow.
Two, no http/2.
3. The time zone of mysql cannot be adjusted.

So decided to move to Google Cloud Platform, to GCP,
After 48 hours, all DNS cache should be gone, I think DNS resolution has been moved to GCE (Google Compute Engine).

The website you see so far, 3C Tech Center, uses the D-Laravel docker-compose environment to operate. Because of the chat room function, redis container is added.
Since there is a $300 trial, let's watch it first to see how much it will cost for a month.

This is the first time for me to run D-Laravel for development on MacOS on GCE. I have the opportunity to write another article on how to set up D-Laravel on GCE.

Benefits of using D-Laravel on GCE:
1. The development environment of my local machine is exactly the same, and the function of this machine can basically be operated remotely.
2. You can update to the latest version of PHP at any time, and you can test whether there is any problem in the development environment on the local MacOS.
3. It is necessary to reinstall related services such as PHP or redis without changing the environment. After docker-compose is set, it can be used.
The new version of php can be updated at any time to facilitate transfer to different platforms.

Well, it is actually the benefit of Docker, but D-Laravel provides a basic architecture and simple bash commands..?

Currently on GCE, the archive speed of my post is super fast, cmd+s archives immediately (I have a hotkey archive in the background),
It takes more than ten seconds for me to complete the archive on Bluehost. Now after arriving at Google Cloud Platform,
Zero waiting, the screen flashes and the archive is completed. It is a refreshing feel to use it..?

docker-compose ps

Tags: config

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


docker, goaccess, config

phpenv actual combat GoAccess is real website analysis (docker version)

Before I start, let me say that GoAccess can also generate static data as long as you have a log, because I think the real-time feeling is more dazzling, so this article will focus on the part of GoAccess real-time display. Although Google Analytics (GA) is very useful, it is also very good to try another GA. For example, you want to know which browsers website users use to visit the website.

security,config

Raspberry Pi fail2ban installation notes

My mainframe basically has remote logs set up, and all of them are sent to the log center on the Synology NAS. Among them, there is a Raspberry Pi that is used as a router, and there will be a bunch of sshd verification attempts to log in. Basically, I only allow public key verification, so I don’t want to use passwords to brute force it, but a bunch of logs of verification failures are really good. Hate.

linux,system,config

Fix the problem that CentOS6.x can no longer be updated

There may still be some old programs in some places, which can only run the old system. But you want to be able to execute and install some desired packages, you may try this method. Please note that if this system is important to you, please evaluate it yourself. It is recommended that you have a Docker environment and have a backup image before trying it.