fix: revert Nginx and Blue/Green deployment to restore stable Apache connection
Some checks are pending
Deploy to OCIWP / deploy (push) Waiting to run

This commit is contained in:
jade
2026-07-25 00:05:54 +09:00
parent 4015207b86
commit 388fa33c67
5 changed files with 89 additions and 311 deletions

View File

@@ -11,6 +11,27 @@ services:
timeout: 3s
retries: 5
gateway:
build:
context: .
dockerfile: dap-gateway/Dockerfile
ports:
- "8281:8081"
volumes:
- ./:/src
depends_on:
redis:
condition: service_healthy
environment:
- TZ=Asia/Seoul
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_DATA_REDIS_HOST=redis
- SPRING_DATA_REDIS_PORT=6379
- AXHUB_SOURCE_DIR=/src
- JAVA_TOOL_OPTIONS=-Xms64m -Xmx384m
- SPRING_PROFILES_ACTIVE=${ACTIVE_PROFILE:-local}
mci-mock:
image: wiremock/wiremock:latest
ports:
@@ -18,6 +39,53 @@ services:
volumes:
- ./mci-mock:/home/wiremock
tool-sms:
build:
context: .
dockerfile: dap-tool-sms/Dockerfile
ports:
- "8282:8082"
depends_on:
- redis
environment:
- TZ=Asia/Seoul
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_DATA_REDIS_PORT=6379
- AXHUB_GATEWAY_URL=http://gateway:8081
- AXHUB_SOURCE_DIR=/src
- AXHUB_TOOL_URL=http://tool-sms:8082
- GLOW_COMMUNICATION_MCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_MCI_PORT=8080
- GLOW_COMMUNICATION_EXTMCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EXTMCI_PORT=8080
- GLOW_COMMUNICATION_EAI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EAI_PORT=8080
- SPRING_PROFILES_ACTIVE=${ACTIVE_PROFILE:-local}
tool-other:
build:
context: .
dockerfile: dap-tool-other/Dockerfile
ports:
- "8284:8084"
depends_on:
- redis
environment:
- TZ=Asia/Seoul
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_DATA_REDIS_PORT=6379
- AXHUB_GATEWAY_URL=http://gateway:8081
- AXHUB_TOOL_URL=http://tool-other:8084
- GLOW_COMMUNICATION_MCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_MCI_PORT=8080
- GLOW_COMMUNICATION_EXTMCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EXTMCI_PORT=8080
- GLOW_COMMUNICATION_EAI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EAI_PORT=8080
- SPRING_PROFILES_ACTIVE=${ACTIVE_PROFILE:-local}
dozzle:
image: amir20/dozzle:latest
ports:
@@ -42,157 +110,3 @@ services:
- ./bin/docker:/usr/bin/docker
- /usr/libexec/docker/cli-plugins/docker-compose:/usr/libexec/docker/cli-plugins/docker-compose
restart: always
nginx:
image: nginx:latest
ports:
- "8080:8281"
- "8282:8282"
- "8283:8283"
- "8284:8284"
- "8285:8285"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/ssl:/etc/nginx/ssl
depends_on:
redis:
condition: service_healthy
restart: always
# ==========================================
# BLUE SERVICES
# ==========================================
gateway-blue:
build:
context: .
dockerfile: dap-gateway/Dockerfile
volumes:
- ./:/src
depends_on:
redis:
condition: service_healthy
environment:
- TZ=Asia/Seoul
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_DATA_REDIS_HOST=redis
- SPRING_DATA_REDIS_PORT=6379
- AXHUB_SOURCE_DIR=/src
- JAVA_TOOL_OPTIONS=-Xms64m -Xmx384m
- SPRING_PROFILES_ACTIVE=${ACTIVE_PROFILE:-local}
- MCP_GATEWAY_FALLBACK_DEFAULT_URL=http://tool-other-blue:8084
- MCP_GATEWAY_FALLBACK_ROUTES_SMS=http://tool-sms-blue:8082
- MCP_GATEWAY_FALLBACK_ROUTES_HR=http://tool-other-blue:8084
tool-sms-blue:
build:
context: .
dockerfile: dap-tool-sms/Dockerfile
depends_on:
- redis
environment:
- TZ=Asia/Seoul
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_DATA_REDIS_PORT=6379
- AXHUB_GATEWAY_URL=http://gateway-blue:8081
- AXHUB_SOURCE_DIR=/src
- AXHUB_TOOL_URL=http://tool-sms-blue:8082
- GLOW_COMMUNICATION_MCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_MCI_PORT=8080
- GLOW_COMMUNICATION_EXTMCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EXTMCI_PORT=8080
- GLOW_COMMUNICATION_EAI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EAI_PORT=8080
- SPRING_PROFILES_ACTIVE=${ACTIVE_PROFILE:-local}
tool-other-blue:
build:
context: .
dockerfile: dap-tool-other/Dockerfile
depends_on:
- redis
environment:
- TZ=Asia/Seoul
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_DATA_REDIS_PORT=6379
- AXHUB_GATEWAY_URL=http://gateway-blue:8081
- AXHUB_TOOL_URL=http://tool-other-blue:8084
- GLOW_COMMUNICATION_MCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_MCI_PORT=8080
- GLOW_COMMUNICATION_EXTMCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EXTMCI_PORT=8080
- GLOW_COMMUNICATION_EAI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EAI_PORT=8080
- SPRING_PROFILES_ACTIVE=${ACTIVE_PROFILE:-local}
# ==========================================
# GREEN SERVICES
# ==========================================
gateway-green:
build:
context: .
dockerfile: dap-gateway/Dockerfile
volumes:
- ./:/src
depends_on:
redis:
condition: service_healthy
environment:
- TZ=Asia/Seoul
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_DATA_REDIS_HOST=redis
- SPRING_DATA_REDIS_PORT=6379
- AXHUB_SOURCE_DIR=/src
- JAVA_TOOL_OPTIONS=-Xms64m -Xmx384m
- SPRING_PROFILES_ACTIVE=${ACTIVE_PROFILE:-local}
- MCP_GATEWAY_FALLBACK_DEFAULT_URL=http://tool-other-green:8084
- MCP_GATEWAY_FALLBACK_ROUTES_SMS=http://tool-sms-green:8082
- MCP_GATEWAY_FALLBACK_ROUTES_HR=http://tool-other-green:8084
tool-sms-green:
build:
context: .
dockerfile: dap-tool-sms/Dockerfile
depends_on:
- redis
environment:
- TZ=Asia/Seoul
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_DATA_REDIS_PORT=6379
- AXHUB_GATEWAY_URL=http://gateway-green:8081
- AXHUB_SOURCE_DIR=/src
- AXHUB_TOOL_URL=http://tool-sms-green:8082
- GLOW_COMMUNICATION_MCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_MCI_PORT=8080
- GLOW_COMMUNICATION_EXTMCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EXTMCI_PORT=8080
- GLOW_COMMUNICATION_EAI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EAI_PORT=8080
- SPRING_PROFILES_ACTIVE=${ACTIVE_PROFILE:-local}
tool-other-green:
build:
context: .
dockerfile: dap-tool-other/Dockerfile
depends_on:
- redis
environment:
- TZ=Asia/Seoul
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_DATA_REDIS_PORT=6379
- AXHUB_GATEWAY_URL=http://gateway-green:8081
- AXHUB_TOOL_URL=http://tool-other-green:8084
- GLOW_COMMUNICATION_MCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_MCI_PORT=8080
- GLOW_COMMUNICATION_EXTMCI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EXTMCI_PORT=8080
- GLOW_COMMUNICATION_EAI_HOMT=http://mci-mock
- GLOW_COMMUNICATION_EAI_PORT=8080
- SPRING_PROFILES_ACTIVE=${ACTIVE_PROFILE:-local}