Our Writing

Idea, Case Study, Tutorial

Docker More, SSH Less – Docker Machine to AWS EC2

Let’s explore some alternative for Docker production deployment besides of using AWS ECS and Manual Docker Engine deployment Manual Docker Engine deployment provide us the full details of all the commands to run, but its always better to just run one line of command for ease of deployment, e.g.: docker-machine create -d amazonec2 –amazonec2-access-key UR_AWS_ACCESS_KEY–amazonec2-secret-key UR_AWS_SECRET_KEY –amazonec2-instance-type t2.small –amazonec2-region ap-southeast-1…

Continue Reading

Laravel in Docker on the Cloud – Amazon ECS

We have created our Docker Hub image here and hosted it in a self-provisioned Ubuntu server. What if we want to host it on Amazon ECS (Elastic Container Service) Fargate with the Docker Hub image? Let’s do it: 1. Sign in to AWS Console (if you don’t have an account yet, just sign one up, Farget is billed per minute,…

Continue Reading

Laravel in Docker on the Cloud – Part 2

Continue from Part 1 Now the problem we face now is that we need to stop and re-run the docker image whenever there’s any changes in the Laravel code. To solve this, we can mount the project root into the Docker container’s volume, so it will get the latest code whenever we save the code. To do this, run docker…

Continue Reading