Skip to content

azizmhmmdf/Spring-boot-Elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run spring with docker

Persyaratan sistem

Langkah 1: Clone Repositori

Langkah 2: Build file .jar

  • Pastikan Maven sudah terinstal di sistem Anda.
  • Buka terminal dan pindah ke direktori proyek Spring Boot.
  • Jalankan perintah berikut untuk membersihkan proyek dan membangun file JAR:
    • mvn clean install

Langkah 3: Build Image Docker

  • docker build -t springapi

Langkah 4: Create Container

  • docker container create [NAME OPTIONAL] -P 8080:8080 [NAME IMAGE]
  • docker container create --name=crud_spring -p 8080:8080 springapi

Langkah 5: Run Container

  • docker container start [NAME CONTAINER]
  • docker container start crud_spring

Aplikasi sekarang dapat diakses melalui http://localhost:8080/

Langkah 6: Stop Container

  • docker container stop [NAME CONTAINER]
  • docker container stop crud_spring

About

CRUD Spring using Elasticsearch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published