diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7471bf1..e302dac 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,8 +28,6 @@ jobs: mkdir -p src/main/resources echo "${{ secrets.APPLICATION_YML }}" > src/main/resources/application.yml cat ./src/main/resources/application.yml - echo "${{ secrets.DOCKER_COMPOSE }}" > ./docker-compose.yml - cat ./docker-compose.yml - name: Run chmod to make gradlew executable run: chmod +x ./gradlew diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f7a4ef1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3.8' + +services: + prod1: + image: sungjiwoon/catchroom_chat:latest + container_name: prod1 + ports: + - "8081:8081" + environment: + - PROFILES=prod1 # app1의 프로파일을 지정 + + prod2: + image: sungjiwoon/catchroom_chat:latest + container_name: prod2 + ports: + - "8082:8082" + environment: + - PROFILES=prod2 \ No newline at end of file