diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 4c40fb3..00f07a2 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -61,5 +61,10 @@ jobs: docker rm sunjoo-server-redis fi + if [ "$(docker ps -q -f publish=6379)" ]; then + docker stop $(docker ps -q -f publish=6379) + docker rm $(docker ps -q -f publish=6379) + fi + docker run -d -p 8080:8090 --name sunjoo-server-auth ${{ secrets.DOCKER_USERNAME }}/sunjoo:auth - docker run -d -p 6380:6379 --name sunjoo-server-redis ${{ secrets.DOCKER_USERNAME }}/sunjoo:redis \ No newline at end of file + docker run -d -p 6379:6379 --name sunjoo-server-redis ${{ secrets.DOCKER_USERNAME }}/sunjoo:redis \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index dd0cfcb..a162d85 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,6 @@ services: image: sunyerim/sunjoo:redis restart: always ports: - - "8080:6379" + - "6379:6379" volumes: - ${REDIS_DATA_PATH}:/data