Skip to content

Commit

Permalink
chore: prod 배포 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Dec 3, 2024
1 parent 12f527c commit bcf1906
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 12 deletions.
12 changes: 6 additions & 6 deletions layer-api/infra/production/docker-compose-blue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
13 changes: 7 additions & 6 deletions layer-api/infra/production/docker-compose-green.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
10 changes: 10 additions & 0 deletions 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 /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;
}
}
}
10 changes: 10 additions & 0 deletions 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 /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;
}
}
}

0 comments on commit bcf1906

Please sign in to comment.