diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 0eeefa95..11f81c5a 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -9,15 +9,15 @@ abort @backend_denied # Backend - reverse_proxy /api/* host.docker.internal:8080 #host.docker.internal:8081 # For blue/green + reverse_proxy /api/* host.docker.internal:8080 # Old file serving - reverse_proxy /sites/default/files/* host.docker.internal:8080 #host.docker.internal:8081 # For blue/green + reverse_proxy /sites/default/files/* host.docker.internal:8080 # Login - reverse_proxy /oauth2/authorization/idsnucse host.docker.internal:8080 #host.docker.internal:8081 # For blue/green + reverse_proxy /oauth2/authorization/idsnucse host.docker.internal:8080 # Swagger - reverse_proxy /swagger-ui/* host.docker.internal:8080 #host.docker.internal:8081 # For blue/green - reverse_proxy /api-docs/* host.docker.internal:8080 #host.docker.internal:8081 # For blue/green -} \ No newline at end of file + reverse_proxy /swagger-ui/* host.docker.internal:8080 + reverse_proxy /api-docs/* host.docker.internal:8080 +} diff --git a/docker-compose-backend.yml b/docker-compose-backend.yml index 82e3578a..ffba533b 100644 --- a/docker-compose-backend.yml +++ b/docker-compose-backend.yml @@ -23,25 +23,3 @@ services: - host.docker.internal:host-gateway restart: always image: ghcr.io/wafflestudio/csereal-server/server_image:latest - # TODO: Activate after implementing health check -# blue: -# container_name: csereal_server_blue -# build: -# context: ./ -# args: -# PROFILE: ${PROFILE} -# ports: -# - 8081:8080 -# volumes: -# - ./cse-files:/app/cse-files -# - ./attachment:/app/attachment -# environment: -# SPRING_DATASOURCE_URL: "jdbc:mysql://host.docker.internal:3306/${MYSQL_DATABASE}?serverTimezone=Asia/Seoul&useSSL=false&allowPublicKeyRetrieval=true" -# SPRING_DATASOURCE_USERNAME: ${MYSQL_USER} -# SPRING_DATASOURCE_PASSWORD: ${MYSQL_PASSWORD} -# OIDC_CLIENT_SECRET_DEV: ${OIDC_CLIENT_SECRET_DEV} -# URL: ${URL} -# extra_hosts: -# - host.docker.internal:host-gateway -# restart: always -# image: ghcr.io/wafflestudio/csereal-server/server_image:latest