-
Install my Images
- Ensure you have Docker installed on your system.
- Run the following command in your terminal to pull the images:
docker pull abdimo101/mysql:v1.0 docker pull abdimo101/rating_microservice
-
First run MySQL Container
- Start a MySQL container using the following command:
docker run --name=rating-mysql -e MYSQL_ROOT_PASSWORD=password123 -e MYSQL_DATABASE=rating_microservice -d abdimo101/mysql:v1.0
- Start a MySQL container using the following command:
-
Create Docker Network
- Create a Docker network and connect it to the MySQL container to allow communication between containers:
docker network create my-network docker network connect my-network rating-mysql
- Create a Docker network and connect it to the MySQL container to allow communication between containers:
-
Run the Rating Container
- Run the Rating container using the following command:
docker run --name=rating-container -p 8090:8080 --network=my-network -e MYSQL_HOST=mysql-container -e MYSQL_PORT=3306 -e MYSQL_DB_NAME=rating_microservice -e MYSQL_USER=root -e MYSQL_PASSWORD=password123 abdimo101/rating_microservice:v1.0
- Run the Rating container using the following command:
-
Notifications
You must be signed in to change notification settings - Fork 0
DrengeneFraKEA/HMS-Rating
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published