Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ spring:
on-profile: prod
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/devlog?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&serverTimezone=Asia/Seoul
url: jdbc:mysql://mysql:3306/devlog?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&serverTimezone=Asia/Seoul
# url: jdbc:mysql://database:3306/devlog?serverTimezone=Asia/Seoul
# driver-class-name: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@testdb_high?TNS_ADMIN=/home/app/backend/wallet
username: ${ORACLE_USERNAME}
password: ${ORACLE_PASSWORD}
jpa:
hibernate:
ddl-auto: validate # DDL (create/update/create-drop/validate/none)
ddl-auto: create # DDL (create/update/create-drop/validate/none)
data:
redis:
host: redis
Expand Down
24 changes: 22 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.9"

networks:
ms-network:
driver: bridge
Expand Down Expand Up @@ -49,6 +47,8 @@ services:
depends_on:
redis:
condition: service_healthy
mysql:
condition: service_healthy
discovery-service:
condition: service_healthy
gateway-service:
Expand Down Expand Up @@ -137,3 +137,23 @@ services:
networks:
- ms-network
restart: on-failure

mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: ${ORACLE_PASSWORD}
MYSQL_DATABASE: devlog
MYSQL_USERNAME: ${ORACLE_USERNAME}
MYSQL_PASSWORD: ${ORACLE_PASSWORD}
ports:
- "3306:3306"
volumes:
- /home/app/mysql-data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- ms-network