Deploying Springboot Application to AWS Elastic Beanstalk from a Docker Container
- Clone this project
git clone https://github.com/adaofeliz/docker-springboot-ebs.git docker-springboot-ebs
- Build & Start Application
cd docker-springboot-ebs
mvn clean install
cd target/ebs_deploy/dist/
docker build -t docker-springboot-ebs .
docker run -p 8080:8080 docker-springboot-ebs
- Deploy with EB Command Line Interface
cd docker-springboot-ebs
mvn clean install
cd target/ebs_deploy/dist/
eb init # Follow Instructions
eb deploy
eb open
- Deploy Single File
cd docker-springboot-ebs
mvn clean install
# Use docker-springboot-ebs/target/ebs_deploy/elastic-beanstalk-docker.zip
- Open: http://localhost:8080/
MIT