Skip to content

Commit

Permalink
[FIX] db컨테이너 이름 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
boham97 committed Dec 15, 2023
1 parent 0c5b4b9 commit 95d21db
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion login-service/deploy/kill_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion order-service/deploy/kill_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion order-service/deploy/run_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion robot-service/deploy/kill_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion robot-service/deploy/run_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
17 changes: 0 additions & 17 deletions worker-service/deploy/kill_process.sh

This file was deleted.

4 changes: 2 additions & 2 deletions worker-service/deploy/run_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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" \
Expand Down

0 comments on commit 95d21db

Please sign in to comment.