title: Deploying Docker image to AWS elastic beanstalk
body: <p>I have created a spring boot app following this <a href="https://hellokoding.com/spring-boot/security-login-mysql-jsp/" rel="nofollow noreferrer">tutorial</a>. Following the tutorial I managed to dockerize my app with the command:</p>
  <pre><code>docker-compose up 
  </code></pre>
  <p>My docker-compose.yml file:</p>
  <pre><code>version: '3'
  services:
  
    app:
      build: .
      volumes:
      - .:/app
      - ~/.m2:/root/.m2
      working_dir: /app
      ports:
      - 8080:8080
      command: mvn clean spring-boot:run
  </code></pre>
  <p>When I check for docker images afterwards I see the new image for the app. Now I want to deploy this app to AWS elastic beanstalk. When creating the environment with docker platform what do I need to upload for the application code? How do I upload my docker image to aws? I can't find a good tutorial on how to deploy a dockerized app/image to aws like this. I am new to docker so any help would be appreciated!</p>