Skip to content

Commit 519f3fa

Browse files
committed
feat: docker-compose & props up
1 parent 8d5e03c commit 519f3fa

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

docker-compose.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,11 @@ services:
1717
ports:
1818
- "3306:3306"
1919
environment:
20-
MYSQL_USER: "user"
21-
MYSQL_ROOT_PASSWORD: "123456"
22-
MYSQL_DATABASE: "testdb"
20+
- MYSQL_ROOT_PASSWORD=123456
21+
- MYSQL_DATABASE=testdb
22+
- MYSQL_PASSWORD=123456
2323
restart: unless-stopped
2424
healthcheck:
2525
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
2626
timeout: 20s
27-
retries: 10
28-
volumes:
29-
- db:/var/lib/mysql
30-
31-
volumes:
32-
db:
27+
retries: 10

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server.port=8080
22
spring.application.name=spring-boot-jwt-auth
33

44
spring.datasource.url=jdbc:mysql://localhost:3306/testdb?useSSL=false
5-
spring.datasource.username=user
5+
spring.datasource.username=root
66
spring.datasource.password=123456
77

88
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect

0 commit comments

Comments
 (0)