Skip to content

Commit

Permalink
feat: AWS RDS 사용으로 인한 datasource 정보 수정 및 docker-compose 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sunghyuki committed Mar 13, 2024
1 parent a44e72a commit 37a86fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
21 changes: 1 addition & 20 deletions server/collusic-be/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ services:

app:
restart: always
image: kjkun7631/collusic-api
build:
context: .
dockerfile: Dockerfile-dev
Expand All @@ -21,22 +20,4 @@ services:
JASYPT_PASSWORD: ${JASYPT_PASSWORD}
depends_on:
- redis
- mysql
command: gradle clean verify spring-boot:run -Dspring-boot.run.profiles=dev

mysql:
restart: always
image: mysql:8.0
container_name: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: collusic-new
MYSQL_USER: collusic-new
MYSQL_PASSWORD: collusic-db-secret
volumes:
- mysql-data:/var/lib/mysql

volumes:
mysql-data:
command: gradle clean verify spring-boot:run -Dspring-boot.run.profiles=dev
6 changes: 3 additions & 3 deletions server/collusic-be/src/main/resources/application-prod_db.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ENC(gnyYY2my5ZaFbvuc1ShsFN8N/6HyTS1sQ5UD+qe72zTg/xZCwIDJsttUCG56/ZZfmIRoFEy6c0gJgFE1FhmB9lYNO9nGF2bf8F75TJqccuicBum0mkyqp30RmK7tC4VoKmHw97c6MRAyx3Iv7LagNw==)
url: ENC(0UN3QoywTt1aetAUuH2wBmNQ81GfewuEflb08Q7KfEv+AZ82o3C65RruLLWFtOemgsLQ/+xmqmv/O45y/NrUTDv/hOYG+9lC6/4w/TQ6H778gFuUKVxYyh9/k6egITMTRkfcW/VDeJJfWh+KVMBSyAlmrFZRo7nFnsZCjuXRG9W1d2SkNqJJ9Ik044jnVPv2)
username: ENC(mf26xrSdlsDGLOp2uRVtYQ==)
password: ENC(B9/bakG1kuaw3NeCNI4dq6K/zkFiyO7uSWx6IR7jUQA=)

Expand All @@ -14,5 +14,5 @@ spring:
jdbc:
batch_size: 10
hibernate:
ddl-auto: create
generate-ddl: true
ddl-auto: validate
generate-ddl: false
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public void setUp() {
public void decryptTest() {

String decryptedText = jasyptStringEncryptor.decrypt(defaultEncryptedText);

assertThat(decryptedText).isEqualTo(defaultRawText);
}

Expand Down

0 comments on commit 37a86fe

Please sign in to comment.