From c003804b7f5bb510badaba70f8b89c1e8a3a3524 Mon Sep 17 00:00:00 2001 From: Keon Date: Wed, 27 Dec 2023 23:39:01 +0900 Subject: [PATCH] Fix: fix docker-compose file and workflow for nginx --- .github/workflows/ide-server-main-deploy.yml | 1 + docker-compose.yml | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ide-server-main-deploy.yml b/.github/workflows/ide-server-main-deploy.yml index 86c0132..5e29828 100644 --- a/.github/workflows/ide-server-main-deploy.yml +++ b/.github/workflows/ide-server-main-deploy.yml @@ -30,6 +30,7 @@ jobs: REPOSITORY: ${{ secrets.AWS_ECR_NAME }} TAG1: ${{ secrets.AWS_ECR_TAG1 }} TAG2: ${{ secrets.AWS_ECR_TAG2 }} + TAG3: ${{ secrets.AWS_ECR_TAG3 }} TEST_DB_URL: ${{ secrets.TEST_DB_URL }} TEST_DB_USERNAME: ${{ secrets.TEST_DB_USERNAME }} TEST_DB_PASSWORD: ${{ secrets.TEST_DB_PASSWORD }} diff --git a/docker-compose.yml b/docker-compose.yml index 52fcc77..9fbba87 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock ports: - - "80:8080" + - "8080:8080" environment: DB_URL: ${DB_URL} DB_USERNAME: ${DB_USERNAME} @@ -32,4 +32,12 @@ services: dockerfile: Dockerfile image: ${REGISTRY}/${REPOSITORY}:${TAG2} ports: - - "9090:8080" \ No newline at end of file + - "9090:8080" + + nginx: + build: + context: ./nginx + dockerfile: Dockerfile + image: ${REGISTRY}/${REPOSITORY}:${TAG3} + ports: + - "80:80" \ No newline at end of file