diff --git a/login-service/deploy/kill_process.sh b/login-service/deploy/kill_process.sh index 62b1f5d..896dc86 100644 --- a/login-service/deploy/kill_process.sh +++ b/login-service/deploy/kill_process.sh @@ -6,7 +6,7 @@ service=$(echo *.jar | cut -d'-' -f1,2) sudo docker build -t $service:$version . echo "build" sudo docker run -d --name "$service-2" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \ - -e "spring.datasource.url=jdbc:mysql://mysql:3306/logiCarrier" \ + -e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/logiCarrier" \ $service:$version echo "successfully run!" sudo docker stop "$service-1" diff --git a/order-service/deploy/kill_process.sh b/order-service/deploy/kill_process.sh index bb7d726..fdd22ff 100644 --- a/order-service/deploy/kill_process.sh +++ b/order-service/deploy/kill_process.sh @@ -6,7 +6,7 @@ service=$(echo *.jar | cut -d'-' -f1,2) sudo docker build -t $service:$version . echo "build" sudo docker run -d --name "$service-2" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \ - -e "spring.datasource.url=jdbc:mysql://mysql:3306/delivery" \ + -e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/delivery" \ -e "spring_redis_host: redis" \ -e "spring_kafka_host: kafka1" \ -e "spring_kafka_port: 19092" \ diff --git a/order-service/deploy/run_java.sh b/order-service/deploy/run_java.sh index 8d6b73a..a735810 100644 --- a/order-service/deploy/run_java.sh +++ b/order-service/deploy/run_java.sh @@ -4,7 +4,7 @@ version=$(echo *.jar | grep -oP '\d+\.\d+\.\d+') service=$(echo *.jar | cut -d'-' -f1,2) sudo docker run -d --name "$service-1" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \ - -e "spring.datasource.url=jdbc:mysql://mysql:3306/delivery" \ + -e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/delivery" \ -e "spring_redis_host: redis" \ -e "spring_kafka_host: kafka1" \ -e "spring_kafka_port: 19092" \ diff --git a/robot-service/deploy/kill_process.sh b/robot-service/deploy/kill_process.sh index e8bc7ac..46bb0b7 100644 --- a/robot-service/deploy/kill_process.sh +++ b/robot-service/deploy/kill_process.sh @@ -6,7 +6,7 @@ service=$(echo *.jar | cut -d'-' -f1,2) sudo docker build -t $service:$version . echo "build" sudo docker run -d --name "$service-2" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \ - -e "spring.datasource.url=jdbc:mysql://mysql:3306/robot" \ + -e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/robot" \ -e "spring_redis_host: redis" \ -e "spring_kafka_host: kafka1" \ -e "spring_kafka_port: 19092" \ diff --git a/robot-service/deploy/run_java.sh b/robot-service/deploy/run_java.sh index fcb509f..9b09531 100644 --- a/robot-service/deploy/run_java.sh +++ b/robot-service/deploy/run_java.sh @@ -4,7 +4,7 @@ version=$(echo *.jar | grep -oP '\d+\.\d+\.\d+') service=$(echo *.jar | cut -d'-' -f1,2) sudo docker run -d --name "$service-1" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \ - -e "spring.datasource.url=jdbc:mysql://mysql:3306/robot" \ + -e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/robot" \ -e "spring_redis_host: redis" \ -e "spring_kafka_host: kafka1" \ -e "spring_kafka_port: 19092" \ diff --git a/worker-service/deploy/kill_process.sh b/worker-service/deploy/kill_process.sh deleted file mode 100644 index d5de375..0000000 --- a/worker-service/deploy/kill_process.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -cd /worker-service -version=$(echo *.jar | grep -oP '\d+\.\d+\.\d+') -service=$(echo *.jar | cut -d'-' -f1,2) - -sudo docker build -t $service:$version . -echo "build" -sudo docker run -d --name "$service-2" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \ - -e "spring.datasource.url=jdbc:mysql://mysql:3306/picker" \ - -e "spring_redis_host: redis" \ - -e "spring_kafka_host: kafka1" \ - -e "spring_kafka_port: 19092" \ - $service:$version -echo "successfully run!" -sudo docker stop "$service-1" -sudo docker rm "$service-1" -sudo docker image prune \ No newline at end of file diff --git a/worker-service/deploy/run_java.sh b/worker-service/deploy/run_java.sh index 32ebcb7..941508e 100644 --- a/worker-service/deploy/run_java.sh +++ b/worker-service/deploy/run_java.sh @@ -6,7 +6,7 @@ service=$(echo *.jar | cut -d'-' -f1,2) sudo docker build -t $service:$version . echo "build" sudo docker run -d --name "$service-2" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \ - -e "spring.datasource.url=jdbc:mysql://mysql:3306/picker" \ + -e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/picker" \ -e "spring_redis_host: redis" \ -e "spring_kafka_host: kafka1" \ -e "spring_kafka_port: 19092" \ @@ -17,7 +17,7 @@ sudo docker rm "$service-1" sudo docker image prune sudo docker run -d --name "$service-1" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \ - -e "spring.datasource.url=jdbc:mysql://mysql:3306/picker" \ + -e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/picker" \ -e "spring_redis_host: redis" \ -e "spring_kafka_host: kafka1" \ -e "spring_kafka_port: 19092" \