From f362e84ac2cc2811e058f8523a0b5f30a18f339c Mon Sep 17 00:00:00 2001 From: Sejeong Kim Date: Thu, 2 Jan 2025 16:21:24 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20dev=20>=20docker-compose=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layer-api/infra/development/application.yml | 66 +++++++++++++++++++ .../development/docker-compose-blue.yaml | 4 +- .../development/docker-compose-green.yaml | 4 +- 3 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 layer-api/infra/development/application.yml diff --git a/layer-api/infra/development/application.yml b/layer-api/infra/development/application.yml new file mode 100644 index 00000000..bb74f7fd --- /dev/null +++ b/layer-api/infra/development/application.yml @@ -0,0 +1,66 @@ +server: + port: 8085 + +spring: + config: + import: application-secret.properties + datasource: + url: ${AWS_PROD_DB_URL} + username: ${AWS_PROD_DB_NAME} + password: ${AWS_PROD_DB_PASSWORD} + driver-class-name: com.mysql.cj.jdbc.Driver + jpa: + hibernate: + ddl-auto: update + properties: + hibernate: + format_sql: true + show_sql: true + open-in-view: false + database: mysql + +apple: + login: + issuer: ${DEV_APPLE_ISSUER} + client_id: ${DEV_APPLE_CLIENT_ID} + audience: ${DEV_APPLE_AUD} + +kakao: + login: + api_key: ${DEV_KAKAO_API_KEY} + redirect_uri: ${DEV_KAKAO_REDIRECT_URI} + uri: + base: https://kauth.kakao.com + code: /oauth/authorize + token: /oauth/token + api: + uri: + base: https://kapi.kakao.com + user: /v2/user/me + +google: + login: + client_id: ${DEV_GOOGLE_CLIENT_ID} + code_uri: ${DEV_GOOGLE_CODE_URI} + token_uri: ${DEV_GOOGLE_TOKEN_URI} + client_secret: ${DEV_GOOGLE_CLIENT_SECRET} + redirect_uri: ${DEV_GOOGLE_REDIRECT_URI} + code_redirect_uri: http://localhost:8080/api/auth/oauth2/google/code + sheet: + id: ${GOOGLE_SHEET_ID} + token_path: ${PROD_GOOGLE_TOKEN_PATH} + credential_path: ${PROD_GOOGLE_CREDENTIAL_PATH} + +ncp: + storage: + region: ${STORAGE_REGION} + bucketName: ${STORAGE_NAME} + endpoint: ${STORAGE_ENDPOINT} + accessKey: ${STORAGE_ACCESS_KEY} + secretKey: ${STORAGE_SECRET_KEY} + +openai: + systemContent: ${OPENAI_SYSTEM_CONTENT} + apiKey: ${OPENAI_API_KEY} + model: ${OPENAI_MODEL} + maxTokens: ${OPENAI_MAX_TOKENS} \ No newline at end of file diff --git a/layer-api/infra/development/docker-compose-blue.yaml b/layer-api/infra/development/docker-compose-blue.yaml index ee46871e..ee6b51a6 100644 --- a/layer-api/infra/development/docker-compose-blue.yaml +++ b/layer-api/infra/development/docker-compose-blue.yaml @@ -18,7 +18,7 @@ services: - "8081:8080" environment: - TZ=Asia/Seoul - - SPRING_PROFILES_ACTIVE=prod + - SPRING_PROFILES_ACTIVE=dev volumes: - ./application-secret.properties:/config/application-secret.properties - ./tokens:/config/tokens @@ -56,7 +56,7 @@ services: - "3001:3000" environment: - TZ=Asia/Seoul - - SPRING_PROFILES_ACTIVE=prod + - SPRING_PROFILES_ACTIVE=dev volumes: - ./application-secret.properties:/config/application-secret.properties - ./tokens:/config/tokens diff --git a/layer-api/infra/development/docker-compose-green.yaml b/layer-api/infra/development/docker-compose-green.yaml index 7e4b7aa0..67f495d6 100644 --- a/layer-api/infra/development/docker-compose-green.yaml +++ b/layer-api/infra/development/docker-compose-green.yaml @@ -18,7 +18,7 @@ services: - "8080:8080" environment: - TZ=Asia/Seoul - - SPRING_PROFILES_ACTIVE=prod + - SPRING_PROFILES_ACTIVE=dev volumes: - ./application-secret.properties:/config/application-secret.properties - ./tokens:/config/tokens @@ -56,7 +56,7 @@ services: - "3000:3000" environment: - TZ=Asia/Seoul - - SPRING_PROFILES_ACTIVE=prod + - SPRING_PROFILES_ACTIVE=dev volumes: - ./application-secret.properties:/config/application-secret.properties - ./tokens:/config/tokens