LoginSignup
0
0

DockerでSpring boot起動するまでの手順

Posted at

DockerでSpring boot起動するまでの手順として、docker compose up -dでコンテナを起動してから以下のコマンドでspring bootのコンテナに入ります。

docker compose exec [service名] /bin/bash

コンテナに入ってからルートディレクトリで、以下のコマンドでspring bootを起動することができます。
ちなみに、今回のspring bootプロジェクトのビルドツールはMavenを採用しています。Java関連で調べているとGradleを使った記事がやや多いように感じました。

./mvnw spring-boot:run
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0