Skip to content

Commit

Permalink
fixing schema and commenting some apps so that Micro service can star…
Browse files Browse the repository at this point in the history
…t in my laptop
  • Loading branch information
Hitesh committed May 6, 2019
1 parent a18f1d6 commit 94d4a20
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 249 deletions.
62 changes: 31 additions & 31 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version : "2.1"
services:
db:
image: mysql
image: mysql:5.6
container_name: docker-mysql
restart: always
ports:
Expand Down Expand Up @@ -103,23 +103,23 @@ services:
config:
condition: service_healthy

monitor:
image: hiteshjoshi1/microservice-docker-cart-example
container_name: monitor
ports:
- "7777:7777"
networks:
- microservicesnet
volumes:
- ${HOME}/jarloc:/data
command: -jar -Dspring.profiles.active=docker -Dspring.datasource.url=jdbc:mysql://docker-mysql/microservices_invoice -Dspring.datasource.password=test /data/monitor-0.0.1-SNAPSHOT.jar
depends_on:
db:
condition: service_started
config:
condition: service_healthy
customer1:
condition: service_started
# monitor:
# image: hiteshjoshi1/microservice-docker-cart-example
# container_name: monitor
# ports:
# - "7777:7777"
# networks:
# - microservicesnet
# volumes:
# - ${HOME}/jarloc:/data
# command: -jar -Dspring.profiles.active=docker -Dspring.datasource.url=jdbc:mysql://docker-mysql/microservices_invoice -Dspring.datasource.password=test /data/monitor-0.0.1-SNAPSHOT.jar
# depends_on:
# db:
# condition: service_started
# config:
# condition: service_healthy
# customer1:
# condition: service_started

zuul:
image: hiteshjoshi1/microservice-docker-cart-example
Expand All @@ -134,19 +134,19 @@ services:
depends_on:
config:
condition: service_healthy
zipkin:
image: hiteshjoshi1/microservice-docker-cart-example
container_name: zipkin
ports:
- "9411:9411"
networks:
- microservicesnet
volumes:
- ${HOME}/jarloc:/data
command: -jar -Dspring.profiles.active=docker /data/zipkinTimer-0.0.1-SNAPSHOT.jar
depends_on:
config:
condition: service_healthy
# zipkin:
# image: hiteshjoshi1/microservice-docker-cart-example
# container_name: zipkin
# ports:
# - "9411:9411"
# networks:
# - microservicesnet
# volumes:
# - ${HOME}/jarloc:/data
# command: -jar -Dspring.profiles.active=docker /data/zipkinTimer-0.0.1-SNAPSHOT.jar
# depends_on:
# config:
# condition: service_healthy



Expand Down
Loading

0 comments on commit 94d4a20

Please sign in to comment.