Skip to content

Commit 67fd27f

Browse files
authored
feat: migrate main database from Oracle to MySQL (#78)
2 parents 1f151b8 + e863003 commit 67fd27f

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

backend/main-service/src/main/resources/yaml/application-prod.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ spring:
99
activate:
1010
on-profile: prod
1111
datasource:
12-
driver-class-name: oracle.jdbc.OracleDriver
13-
url: jdbc:oracle:thin:@testdb_high?TNS_ADMIN=/home/app/backend/wallet
12+
driver-class-name: com.mysql.cj.jdbc.Driver
13+
url: jdbc:mysql://localhost:3306/devlog?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&serverTimezone=Asia/Seoul
14+
# url: jdbc:mysql://database:3306/devlog?serverTimezone=Asia/Seoul
15+
# driver-class-name: oracle.jdbc.OracleDriver
16+
# url: jdbc:oracle:thin:@testdb_high?TNS_ADMIN=/home/app/backend/wallet
1417
username: ${ORACLE_USERNAME}
1518
password: ${ORACLE_PASSWORD}
1619
jpa:

docker-compose.prod.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ networks:
55
driver: bridge
66

77
services:
8-
frontend-service:
9-
build:
10-
context: ./frontend
11-
dockerfile: Dockerfile.prod
12-
ports:
13-
- "3000:3000"
14-
networks:
15-
- ms-network
16-
restart: on-failure
17-
188
discovery-service:
199
build:
2010
context: ./backend/discovery-service

0 commit comments

Comments
 (0)