diff --git a/README.md b/README.md index 0f5ed33..9674dc5 100644 --- a/README.md +++ b/README.md @@ -39,3 +39,25 @@ cd ### 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. \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 098b5cb..785096c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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