Skip to content

This repository contains the dockerized version of my java project using spring boot framework and mongoDB

Notifications You must be signed in to change notification settings

fazil-ahmed/Monolithic-architecture-Java-spring-boot-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-docker-java-mongo-fazil - Monolithic architecture

This repository contains the dockerized version of my java project using spring boot framework and mongoDB

I will be attaching the docker commands below and the steps to setup the architecture.

  1. start docker daemon with docker desktop (windows)

  2. docker pull mongo:3.6(mongo:version)

  3. docker images -> verify images is pulled

  4. docker run -d -p 27017:27017 --name ummahskitchendb mongo:3.6

in application

create docker file in root directory

go to root directory in cmd

  1. docker image build -t ummahskitchen .

  2. docker run -p 8080:8080 --name ummahskitchen --link ummahskitchendb:mongo -d ummahskitchen

logs check command

docker logs (conatiner name)

remove container

docker rm -f ummahskitchendb

After getting comfortable with Dockerfile we can start using the docker-compose file -> mentioned in the project root directory

About

This repository contains the dockerized version of my java project using spring boot framework and mongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published