Skip to content

Commit

Permalink
Merge pull request #45 from JavatoDev-com/36-setup-docker-swarm-setup…
Browse files Browse the repository at this point in the history
…-for-whole-application-infrastructur

36 setup docker swarm setup for whole application infrastructur
  • Loading branch information
chinthaka-dinadasa authored May 15, 2024
2 parents 84594fc + 150f6bb commit 3415365
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core-banking-service/src/main/resources/bootstrap-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
spring:
cloud:
config:
uri: http://internet-banking-config-server:8090
40 changes: 40 additions & 0 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,46 @@ services:
volumes:
- mysqldata:/var/lib/mysql

internet-banking-config-server:
image: javatodev/internet-banking-config-server
ports:
- 8090:8090

internet-banking-service-registry:
image: javatodev/internet-banking-service-registry
ports:
- 8081:8081

internet-banking-api-gateway:
image: javatodev/internet-banking-api-gateway
ports:
- 8082:8082
entrypoint: ["./wait-for-it.sh", "internet-banking-service-registry:8081", "--timeout=50", "--", "./wait-for-it.sh", "internet-banking-config-server:8090", "--timeout=50", "--", "java", "-jar", "-Dspring.profiles.active=docker", "/app.jar"]

internet-banking-user-service:
image: javatodev/internet-banking-user-service
ports:
- 8083:8083
entrypoint: ["./wait-for-it.sh", "internet-banking-service-registry:8081", "--timeout=50", "--", "./wait-for-it.sh", "internet-banking-config-server:8090", "--timeout=50", "--", "./wait-for-it.sh", "mysql_core_db:3306", "--timeout=50", "--","java", "-jar", "-Dspring.profiles.active=docker", "/app.jar"]

internet-banking-fund-transfer-service:
image: javatodev/internet-banking-fund-transfer-service
ports:
- 8084:8084
entrypoint: ["./wait-for-it.sh", "internet-banking-service-registry:8081", "--timeout=50", "--", "./wait-for-it.sh", "internet-banking-config-server:8090", "--timeout=50", "--", "./wait-for-it.sh", "mysql_core_db:3306", "--timeout=50", "--","java", "-jar", "-Dspring.profiles.active=docker", "/app.jar"]

internet-banking-utility-payment-service:
image: javatodev/internet-banking-utility-payment-service
ports:
- 8085:8085
entrypoint: ["./wait-for-it.sh", "internet-banking-service-registry:8081", "--timeout=50", "--", "./wait-for-it.sh", "internet-banking-config-server:8090", "--timeout=50", "--", "./wait-for-it.sh", "mysql_core_db:3306", "--timeout=50", "--","java", "-jar", "-Dspring.profiles.active=docker", "/app.jar"]

core-banking-service:
image: javatodev/core-banking-service
ports:
- 8092:8092
entrypoint: ["./wait-for-it.sh", "internet-banking-service-registry:8081", "--timeout=50", "--", "./wait-for-it.sh", "internet-banking-config-server:8090", "--timeout=50", "--", "./wait-for-it.sh", "mysql_core_db:3306", "--timeout=50", "--","java", "-jar", "-Dspring.profiles.active=docker", "/app.jar"]

volumes:
postgres_data:
mysqldata:
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
spring:
cloud:
config:
uri: http://internet-banking-config-server:8090
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
spring:
cloud:
config:
uri: http://internet-banking-config-server:8090
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
spring:
cloud:
config:
uri: http://internet-banking-config-server:8090
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
spring:
cloud:
config:
uri: http://internet-banking-config-server:8090

0 comments on commit 3415365

Please sign in to comment.