How to run docker-compose on EC2 AWS

Описание к видео How to run docker-compose on EC2 AWS

In this video I want to show you how to run an application with docker-compose on an Amazon AWS EC2 instance.
This might be preferred for a hobby project or when you want to make your application quickly available.

Self-hosting like this is discouraged for production applications, I would rather recommend managed solutions like Amazon EKS or ECS. I'll demonstrate EKS and ECS in future videos.

This video might encourage you to try out Amazon AWS for your hobby project. AWS is a stable in the industry and very valuable tool to master.

#aws #docker #dockercompose #ec2 #selfhosted

SSH into the machine:
chmod 0400 PEM_FILE.pem
ssh -i PEM_FILE.pem ec2-user@public-ip

Error Logs:
/var/log/cloud-init-output.log

How to mount a volume:
https://docs.aws.amazon.com/AWSEC2/la...

Demo application with nginx and docker-compose files:
https://github.com/kobbikobb/guessthe...

Copy files into your instance with scp:
scp -i ~/PEM_FILE.pem -r nginx.conf ec2-user@public-IP:nginx.conf
scp -i ~/PEM_FILE.pem -r docker-compose-explicit.yaml ec2-user@public-IP:docker-compose-explicit.yaml

Want to automate what is presented in this Video with the help of AWS Cloud Formation?
Then please check out this Video:
   • How to run docker-compose on EC2 AWS ...  

Twitter:
#kobbikobb

Комментарии

Информация по комментариям в разработке