rslim087/contact-support-team
This Docker image provides a microservice for handling contact messages and form submissions. It allows retrieving a contact message and submitting a contact form.
To run a container from this image, use the following command:
docker run -p 8000:8000 contact-support-microservice
The microservice will be accessible at http://localhost:8000
.
In version 2.0.0, the Contact Support Microservice is updated to include database integration, which relies on environment variables to establish a connection with a MongoDB database for storing and retrieving contact messages.
docker run -p 8000:8000 -e MONGODB_HOST=<mongo_host> -e MONGODB_PORT=<mongo_port> -e MONGODB_DATABASE=<mongo_database> contact-support-microservice
GET /api/contact-message
: Retrieves a contact message.POST /api/contact-submit
: Submits a contact form.This microservice does not require any environment variables to be set.
This microservice does not use any volumes.
To enable communication between the Contact Support microservice and other microservices or applications, ensure that the containers are connected to the same Docker network. You can achieve this by following these steps:
Create a Docker network:
docker network create my-network
Run the Contact Support microservice container with the --network
flag:
docker run --network my-network -p 8000:8000 contact-support-microservice
Run other microservice or application containers on the same network:
docker run --network my-network -p 4000:4000 ecommerce-ui
By connecting the containers to the same Docker network, they can communicate with each other using their container names as hostnames.
If you want to build the Docker image yourself, follow these steps:
docker build -t contact-support-microservice .
contact-support-microservice
.If you would like to contribute to this project, please follow the guidelines in the CONTRIBUTING.md file.
This project is licensed under the MIT License.
If you encounter any issues or have questions regarding this Docker image or the Contact Support microservice, please open an issue on the GitHub repository.
docker pull rslim087/contact-support-team