diff --git a/layer-api/infra/production/docker-compose-blue.yaml b/layer-api/infra/production/docker-compose-blue.yaml index 82d57859..92c0ba7b 100644 --- a/layer-api/infra/production/docker-compose-blue.yaml +++ b/layer-api/infra/production/docker-compose-blue.yaml @@ -14,20 +14,20 @@ services: networks: - app-network - batch-job-blue: - image: docker.io/clean01/layer-server_layer-batch:latest - container_name: layer-batch-blue + layer-admin-blue: + image: docker.io/clean01/layer-server_layer-admin:latest + container_name: layer-admin-blue + ports: + - "8083:3000" environment: - TZ=Asia/Seoul + - SPRING_PROFILES_ACTIVE=prod volumes: - ./application-secret.properties:/config/application-secret.properties - ./log:/log - ./tokens:/config/tokens networks: - app-network - depends_on: - - layer-api-blue - restart: always networks: app-network: \ No newline at end of file diff --git a/layer-api/infra/production/docker-compose-green.yaml b/layer-api/infra/production/docker-compose-green.yaml index bf36a0b6..6a330f73 100644 --- a/layer-api/infra/production/docker-compose-green.yaml +++ b/layer-api/infra/production/docker-compose-green.yaml @@ -14,20 +14,21 @@ services: networks: - app-network - batch-job-green: - image: docker.io/clean01/layer-server_layer-batch:latest - container_name: layer-batch-green + layer-admin-green: + image: docker.io/clean01/layer-server_layer-admin:latest + container_name: layer-admin-green + ports: + - "8082:3000" environment: - TZ=Asia/Seoul + - SPRING_PROFILES_ACTIVE=prod volumes: - ./application-secret.properties:/config/application-secret.properties - ./log:/log - ./tokens:/config/tokens networks: - app-network - depends_on: - - layer-api-green - restart: always + networks: app-network: \ No newline at end of file diff --git a/layer-api/infra/production/nginx.blue.conf b/layer-api/infra/production/nginx.blue.conf index 326ea474..44397af9 100644 --- a/layer-api/infra/production/nginx.blue.conf +++ b/layer-api/infra/production/nginx.blue.conf @@ -8,6 +8,7 @@ http { server { listen 80; + # 기존 라우팅 (서비스 api) location / { proxy_pass http://layer-api; proxy_set_header Host $host; @@ -15,5 +16,14 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } + + # /admin 요청 라우팅 + location /admin { + proxy_pass http://localhost:8083; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } } } \ No newline at end of file diff --git a/layer-api/infra/production/nginx.green.conf b/layer-api/infra/production/nginx.green.conf index a7f4110b..34ff3c23 100644 --- a/layer-api/infra/production/nginx.green.conf +++ b/layer-api/infra/production/nginx.green.conf @@ -8,6 +8,7 @@ http { server { listen 80; + # 기존 라우팅 (서비스 api) location / { proxy_pass http://layer-api; proxy_set_header Host $host; @@ -15,5 +16,14 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } + + # /admin 요청 라우팅 + location /layer-admin { + proxy_pass http://localhost:8082; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } } } \ No newline at end of file