-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from mohamed-taman/feature/updating_microservi…
…ces_to_use_persistence_layer Updating microservices to use persistence layer (resolves #31, resolves #32, resolves #33, resolves #34, resolves #35, resolves #36, resolves #37, resolves #38, resolves #39)
- Loading branch information
Showing
64 changed files
with
2,375 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,58 @@ | ||
version: '2.1' | ||
version: '3.7' ## Latest version works with Docker Engine release 18.06.0+ | ||
|
||
services: | ||
product: | ||
build: product-service | ||
mem_limit: 350m | ||
environment: | ||
- SPRING_PROFILES_ACTIVE=docker | ||
depends_on: | ||
- mongodb | ||
|
||
recommendation: | ||
build: recommendation-service | ||
mem_limit: 350m | ||
environment: | ||
- SPRING_PROFILES_ACTIVE=docker | ||
depends_on: | ||
- mongodb | ||
|
||
review: | ||
build: review-service | ||
mem_limit: 350m | ||
environment: | ||
- SPRING_PROFILES_ACTIVE=docker | ||
depends_on: | ||
- mysql | ||
|
||
product-composite: | ||
build: product-composite-service | ||
mem_limit: 350m | ||
store: | ||
build: store-service | ||
ports: | ||
- "8080:8080" | ||
environment: | ||
- SPRING_PROFILES_ACTIVE=docker | ||
|
||
# $ mongo | ||
mongodb: | ||
image: mongo:4.2.5-bionic | ||
ports: | ||
- "27017-27019:27017-27019" | ||
healthcheck: | ||
test: echo 'db.runCommand("ping").ok' | mongo mongo:27017/test --quiet 1 | ||
interval: 10s | ||
timeout: 10s | ||
retries: 5 | ||
start_period: 40s | ||
|
||
# $ mysql -uroot -h127.0.0.1 -p | ||
mysql: | ||
image: mysql:8.0.19 | ||
ports: | ||
- "3306:3306" | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=rootpwd | ||
- MYSQL_DATABASE=review-db | ||
- MYSQL_USER=user | ||
- MYSQL_PASSWORD=pwd | ||
healthcheck: | ||
test: ["CMD", "mysqladmin" ,"ping", "-uuser", "-ppwd", "-h", "localhost"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 0 additions & 85 deletions
85
...rvice/src/main/java/com/siriusxi/ms/store/pcs/controller/ProductCompositeServiceImpl.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.