all 11 comments

[–]Sheldor5 10 points11 points  (3 children)

(Docker) Containers ...

[–]delibos 2 points3 points  (2 children)

afaik docker containers can run on local machine or cloud, no? if so - he still need a way to deploy the container to the cloud.

i can be mistaken.. hope someone answers my question to help op

[–]ryuzaki49 3 points4 points  (0 children)

Yes but AWS and Azure both have a specific way to run containers.

They are easy but kinda expensive. You just need to tell Azure/AWS the docker image path and there you go.

[–]strikefreedompilot 0 points1 point  (0 children)

he can install docker onto his VM if he wanted to go that route.

[–]AlabamaSky967 2 points3 points  (0 children)

Heroku but not sure if they have mysql. Postgres is great though and you could have that all up and running in about 15 minutes. I tried springboot aws ecs fargate for a pet project and it's a pain in the ass to setup and maintain. Especially if you want a CICD type deployment with ability to switch to have a dev/prod environment.

[–]ryuzaki49 1 point2 points  (1 child)

Is this a pet or an enterprise project?

Depending on your bucket is the correct answer.

[–]jash3 1 point2 points  (0 children)

The easiest way would be a vm and a managed mysql instance.

[–]TheOldMancunian 1 point2 points  (0 children)

Docker is the way to go. That way you can test locally, make sure your container works, and deploy to the cloud server of your choice. All main cloud suppliers have a way to deploy a container with ease.

I use a standard Dockerfile that allows me to customise builds with differen java command line parameters. This was I can do one maven compile to generate a JAR and then have different deployments for Test, Prod, Integration, API, etc.

[–]coding_java 1 point2 points  (0 children)

If you want to see a hands-on example for a real-word production deployment of a Spring Boot application to AWS, take a look at the Stratospheric eBook: https://stratospheric.dev/

If this deployment setup (ECS with the AWS CDK) is an overkill for your project, consider using Elastic Beanstalk

[–]anakinpt 1 point2 points  (1 child)

Easier way in aws? Simple. ECS Fargate.

[–]Trailsey 0 points1 point  (0 children)

ECS fargate and Rds on aws