by Devin Yang
(This article was automatically translated.)

Published - 6 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


config,vim

Chinese environment of Vim on Ubuntu

If Vim is set to Chinese environment, but Ubuntu is not set to zh_TW.UTF-8 during installation, how to install this environment?

config,ssl,certbot

Apache and Nginx's ACME authentication pass kill

Some people may be curious about what to do with this. Let me briefly explain my situation. The super old host cannot install HAProxy or certbo without Docker, only apache and nginx. But I need to automatically apply for and update the certificate on the host, so I let the host mount the folder on another host that can run the certbot program through NFS, so that the verification file generated by him can be directly generated on the old host /home In the /nginx/acme-challenge/.well-known/acme-challenge/ directory, the web page can be successfully verified and the certificate can be obtained. When there are a bunch of vhosts, you can all eat the same folder, instead of creating a directory for each vhost 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.