Skip to content

Basic dockerized application with spring-data and mongodb as document database

License

Notifications You must be signed in to change notification settings

yaakov-berkovitch/spring-mongo-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-mongo-docker

Introduction

This is a simple starter project to understand how to simply work with spring-data and mongo.

Build the project

Run "gradle build" from the command line.
You can also load the project in eclipse IDE using the import of gradle project.

Build the docker image

To build the docker image run : gradle buildImage
The image created has the same name as the jar.
To list the images, run : docker images

Run the dockerized application

To run the application use the following command:
docker run -d \
  --rm \
  --name spring-mongodb-docker \
  -e MONGODB_SERVER_NAME=1.2.3.4 \
  -e MONGODB_DATABASE_NAME=demodb \
  spring-mongodb-docker:1.0

About

Basic dockerized application with spring-data and mongodb as document database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages