Attach database such as Mongodb to backend and run this springboot application on 8080
869
This is a spring-boot application that collects employee employee lists such as first name, middle name, last name, and email IDs and provides tabular-formatted data in the front page. It uses a backend database such as MongoDB for storing the data.
Example:
#Create A Docker-customized network docker network create mynetwork
#Create MongoDB Container with variables docker run -d --network mynetwork --name mymongodb -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=mypassword mongo:latest
#Create Springboot application with MongoDB Container Attachment docker run -d -p 8080:8080 -e MONGO_DB_HOSTNAME=mymongodb -e MONGO_DB_USERNAME=admin -e MONGO_DB_PASSWORD=mypassword --network mynetwork spring-boot-application:latest
#Provide your own username and password to it
Content type
Image
Digest
sha256:1adf345ff…
Size
99.4 MB
Last updated
over 2 years ago
docker pull bnvschaitanya/spring-boot-application