Skip to content

Commit

Permalink
chore: docker-compose에 db 설정을 제거한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed Sep 16, 2024
1 parent 2a79b8a commit 0a6fd2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions .docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
version: '3'
services:
db:
container_name: moneymong-db
image: mysql
environment:
MYSQL_DATABASE: moneymong
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
TZ: Asia/Seoul
ports:
- ${DOCKER_DB_PORT}
volumes:
- ./mysqldata:/var/lib/mysql2
restart: always

server:
container_name: server
image: ${DOCKER_IMAGE_NAME}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-prod.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://moneymong-db:3306/moneymong?useSSL=false&&allowPublicKeyRetrieval=true
jdbc-url: jdbc:mysql://101.101.216.85:3306/moneymong?useSSL=false&&allowPublicKeyRetrieval=true
username: root
password: ${DB_ROOT_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
Expand Down

0 comments on commit 0a6fd2c

Please sign in to comment.