Skip to content

Commit

Permalink
chore: dev 서버의 db url을 변경한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed Sep 29, 2024
1 parent c5a68e5 commit 560ec59
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
version: '3'
services:
db:
container_name: moneymong-db
image: mysql
environment:
MYSQL_DATABASE: moneymong
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD_DEV}
TZ: Asia/Seoul
ports:
- ${DOCKER_DB_PORT}
volumes:
- ./mysqldata:/var/lib/mysql
restart: always

server:
container_name: server
image: ${DOCKER_IMAGE_NAME}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spring:
datasource:
db:
pool-name: moneymong
jdbc-url: jdbc:mysql://localhost:3306/moneymong?useSSL=false&&allowPublicKeyRetrieval=true
jdbc-url: jdbc:mysql://moneymong-db:3306/moneymong?useSSL=false&&allowPublicKeyRetrieval=true
username: root
password: ${DB_ROOT_PASSWORD_DEV}
driver-class-name: com.mysql.cj.jdbc.Driver
Expand Down

0 comments on commit 560ec59

Please sign in to comment.