Skip to main content

Posts

Showing posts with the label mongodb

Microservices Application with Flutter Flask MongoDB RabbitMQ

A complete microservice application setup with a Flutter app, MongoDB, and RabbitMQ, along with all the necessary files and folder structure. The setup uses Docker Compose to orchestrate the services. Folder Structure ``` microservice-app/ │ ├── backend/ │   ├── Dockerfile │   ├── requirements.txt │   ├── main.py │   └── config.py │ ├── frontend/ │   ├── Dockerfile │   ├── pubspec.yaml │   └── lib/ │       └── main.dart │ ├── docker-compose.yml └── README.md ``` 1. `docker-compose.yml` ```yaml version: '3.8' services:   backend:     build: ./backend     container_name: backend     ports:       - "8000:8000"     depends_on:       - mongodb       - rabbitmq     environment:       - MONGO_URI=mongodb://mongodb:27017/flutterdb       - RABBITMQ_URI=amqp://guest:guest@rabbitmq...

How To Get the MongoDB Version from Another Docker Container

To get the MongoDB version from outside of MongoDB in the terminal, you can use the following commands: Linux and macOS: mongo --version Windows: mongod --version These commands will print the version of MongoDB that is installed on your system. For example, if you are running MongoDB version 5.0.13, the command will output the following: MongoDB server version: 5.0.13 If you are running the MongoDB Compass GUI, you can also get the MongoDB version by clicking on the Help menu and selecting About MongoDB Compass . There are a few ways to get the MongoDB version from another container when the MongoDB is running on a separate container and the other container is running a Debian-based image with Python: Use the mongo command. You can use the mongo command to connect to the MongoDB container and get the version. To do this, you will need to know the IP address of the MongoDB container. You can get the IP address of the container using the docker inspect command. docker inspect mon...