Skip to content

Commit

Permalink
Docker changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek081141 committed Jul 5, 2024
1 parent dcc4a00 commit 706c17d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,25 @@ cd <repository-directory>
### Step 4: Run the Application with Docker Compose
- docker-compose up
```

## Accessing the Application
Once the containers are running, the Spring Boot application will be accessible at http://localhost:18012.

## Additional Information
**MongoDB Data Persistence**: MongoDB data is persisted in the host folder /Users/XXXX/DOCKER/mongo/db
mapped to /data/db in the MongoDB container.

**Spring Boot Application**: The application is packaged as a JAR file and copied into the Docker image.
Cleaning Up
To stop the running containers, use:

```bash
docker-compose down
```
This command stops and removes the containers defined in the docker-compose.yml file.

## License
This project is licensed under the MIT License - see the LICENSE file for details.

## Contributing
Feel free to submit issues, fork the repository, and send pull requests.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
environment:
MONGO_INITDB_DATABASE: mongoboot
volumes:
- /Users/I350472/DOCKER/mongo/db:/data/db # Mapping host folder to container folder
- /Users/XXXXX/DOCKER/mongo/db:/data/db # Mapping host folder to container folder

my-springboot-mongo-app:
image: my-springboot-mongo-app:latest
Expand Down

0 comments on commit 706c17d

Please sign in to comment.