Skip to content

Commit a664f40

Browse files
committed
fix: docker network 적용 및 port 수정, Spring profile 적용
1 parent f7e479b commit a664f40

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release-code-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ jobs:
103103
envs: PACKAGE_ACCESS_TOKEN, GCR_PACKAGE_NAME
104104
script: |
105105
docker stop pfplay-api-server && docker rm pfplay-api-server
106+
sudo docker rmi $(docker images | grep "pfplay-api-server") -f
106107
echo $PACKAGE_ACCESS_TOKEN | docker login ghcr.io -u JeekLee --password-stdin
107108
docker pull ghcr.io/pfplay/$GCR_PACKAGE_NAME:latest
108-
docker run -d --name pfplay-api-server -p 8088:8088 --restart unless-stopped ghcr.io/pfplay/$GCR_PACKAGE_NAME:latest
109+
docker run -d --name pfplay-api-server -p 8088:8080 --restart unless-stopped ghcr.io/pfplay/$GCR_PACKAGE_NAME:latest --network api_backend
109110

api/Dockerfile-deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ FROM eclipse-temurin:17-jdk
22

33
COPY api/build/libs/*-SNAPSHOT.jar app.jar
44

5-
ENTRYPOINT ["java", "-jar", "app.jar"]
5+
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=dev", "app.jar"]

0 commit comments

Comments
 (0)