Skip to content

Commit

Permalink
chore: deploy.sh에 어드민 모듈 내용 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Dec 2, 2024
1 parent e912fb0 commit cdfb886
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aws-cicd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- chore/migration
- chore/LA-28

env:
REGISTRY: "docker.io"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import lombok.RequiredArgsConstructor;

@RequestMapping("/admin/members")
@RequestMapping("/members")
@RequiredArgsConstructor
@RestController
public class AdminMemberController implements AdminMemberApi {
Expand Down
15 changes: 15 additions & 0 deletions layer-api/infra/production/docker-compose-blue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ services:
- ./tokens:/config/tokens
networks:
- app-network
-
layer-admin-blue:
image: docker.io/clean01/layer-server_layer-admin:latest
container_name: layer-admin-blue
ports:
- "8082:8080"
environment:
- TZ=Asia/Seoul
- SPRING_PROFILES_ACTIVE=prod
volumes:
- ./application-secret.properties:/config/application-secret.properties
- ./log:/log
- ./tokens:/config/tokens
networks:
- app-network

batch-job-blue:
image: docker.io/clean01/layer-server_layer-batch:latest
Expand Down
15 changes: 15 additions & 0 deletions layer-api/infra/production/docker-compose-green.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ services:
networks:
- app-network

layer-admin-green:
image: docker.io/clean01/layer-server_layer-admin:latest
container_name: layer-admin-green
ports:
- "8082:8080"
environment:
- TZ=Asia/Seoul
- SPRING_PROFILES_ACTIVE=prod
volumes:
- ./application-secret.properties:/config/application-secret.properties
- ./log:/log
- ./tokens:/config/tokens
networks:
- app-network

batch-job-green:
image: docker.io/clean01/layer-server_layer-batch:latest
container_name: layer-batch-green
Expand Down
12 changes: 11 additions & 1 deletion layer-api/infra/production/nginx.blue.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,22 @@ http {
server {
listen 80;

# 기존 라우팅 (서비스 api)
location / {
proxy_pass http://layer-api;
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;
}

# /admin 요청 라우팅
location /layer-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;
}
}
}
}
12 changes: 11 additions & 1 deletion layer-api/infra/production/nginx.green.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,22 @@ http {
server {
listen 80;

# 기존 라우팅 (서비스 api)
location / {
proxy_pass http://layer-api;
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;
}

# /admin 요청 라우팅
location /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;
}
}
}
}

0 comments on commit cdfb886

Please sign in to comment.