To manage version control for my blog posts, I wanted to enable Git over SSH in the directory where I store them, making version control easier to handle.
In the end, I spent a day troubleshooting an issue caused by a misconfiguration in the VPS that prevented me from connecting to the Docker Container hosting Gitea.
My initial configuration
I generated ssh-key then placed it in the .ssh/ directory in the VPS.
docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce:latest
To update Portainer, I stopped the container and then removed it. After that, I ran the same command I used previously to create the container, which started the updated version.
Let’s say that VPS is like renting apartment. By paying fee, we can get individual space in a building based on the shared infrastructure like water supply and gas.
Advantages
Using the analogy of an apartment to illastrate the advanteges.
We can set up living system in lower cost compare to buying a house.
We don’t affected so much by other neighbors because each rooms are separated.
We can custamize the interior.
We can apply things like air-conditioner, wifi which requires the contract.
In the last article I explained how I built my blog.
Actually, since this was my first project using a VPS, I’d like to briefly note about the overview of the infrastructure.
1. Hosting the system on a VPS
※VPS = Virtual Private Server
Connected my local environment to the VPS via SSH.