From f3000e17ffe2bc439c9cb9df63e3f6348ea64e04 Mon Sep 17 00:00:00 2001 From: KimMinWoooo Date: Wed, 28 Aug 2024 20:21:25 +0900 Subject: [PATCH] fix --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e803776..2aef379 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -58,8 +58,8 @@ jobs: "sudo docker pull ${{ env.DOCKER_HUB_USERNAME }}/ai:latest", "sudo docker stop backend ai || true", "sudo docker rm backend ai || true", - "sudo docker run -d --name ai --network ec2-user_export_network -p 8000:8000 -e PROJECT_NAME=ParseAI -e DATABASE_URL=mysql+aiomysql://root:qlalfqjsgh486@db:3306/moviedatabase ${{ env.DOCKER_HUB_USERNAME }}/ai:latest", - "sudo docker run -d --name backend --network ec2-user_export_network -p 8080:8080 -e SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/moviedatabase?serverTimezone=Asia/Seoul -e SPRING_DATASOURCE_USERNAME=root -e SPRING_DATASOURCE_PASSWORD=qlalfqjsgh486 -e AI_SERVICE_URL=http://localhost:8000/api/v1 ${{ env.DOCKER_HUB_USERNAME }}/backend:latest" + "sudo docker run -d --name ai --network ec2-user_export_network -p 8000:8000 -e PROJECT_NAME=ParseAI -e DATABASE_URL=mysql+aiomysql://root:qlalfqjsgh486@172.21.0.3:3306/moviedatabase ${{ env.DOCKER_HUB_USERNAME }}/ai:latest", + "sudo docker run -d --name backend --network ec2-user_export_network -p 8080:8080 -e SPRING_DATASOURCE_URL=jdbc:mysql://172.21.0.3:3306/moviedatabase?serverTimezone=Asia/Seoul -e SPRING_DATASOURCE_USERNAME=root -e SPRING_DATASOURCE_PASSWORD=qlalfqjsgh486 -e AI_SERVICE_URL=http://localhost:8000/api/v1 ${{ env.DOCKER_HUB_USERNAME }}/backend:latest" ] }'