Skip to content

Commit

Permalink
initial setting: connecting db
Browse files Browse the repository at this point in the history
  • Loading branch information
singsangssong committed Jan 9, 2025
1 parent 684c31c commit 986f1f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY build/libs/ruty-server-0.0.1-SNAPSHOT.jar /app/app.jar
ENV JAVA_OPTS="-Dserver.port=8080"
ENV PORT=8080

ENV SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/ruty-db
ENV SPRING_DATASOURCE_URL=jdbc:mysql://ruty-mysql:3306/ruty-db
ENV SPRING_DATASOURCE_USERNAME=ruty
ENV SPRING_DATASOURCE_PASSWORD=bunnies

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ spring:

datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/ruty_db
# url: jdbc:mysql://ruty-mysql:3306/ruty_db
# url: jdbc:mysql://localhost:3306/ruty_db
url: jdbc:mysql://ruty-mysql:3306/ruty_db
username: ruty
password: bunnies

Expand Down

0 comments on commit 986f1f7

Please sign in to comment.