Skip to content

Commit 59b3ca2

Browse files
author
ramazansakin
committed
docker-compose up & lombok dep added
1 parent f22bdef commit 59b3ca2

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Diff for: docker-compose.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ version: "2.1"
22
services:
33
spring-boot-jwt-auth:
44
build: .
5-
image: spring-boot-jwt-auth-img
5+
image: spring-boot-jwt-auth
66
ports:
77
- "8080:8080"
88
environment:
9-
- spring.datasource.url=jdbc:mysql://mysqldb:3306/testdb?useSSL=false
9+
- spring.datasource.url=jdbc:mysql://mysqldb:3306/testdb
1010
depends_on:
1111
mysqldb:
1212
condition: service_healthy
1313
restart: on-failure
1414

1515
mysqldb:
16-
image: mysql:5.7
16+
image: mysql:8.0.32
1717
ports:
1818
- "3306:3306"
1919
environment:
@@ -23,5 +23,5 @@ services:
2323
restart: unless-stopped
2424
healthcheck:
2525
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
26-
timeout: 20s
27-
retries: 10
26+
timeout: 10s
27+
retries: 5

Diff for: pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@
5252
<version>0.9.1</version>
5353
</dependency>
5454

55+
<dependency>
56+
<groupId>org.projectlombok</groupId>
57+
<artifactId>lombok</artifactId>
58+
<version>1.18.26</version>
59+
</dependency>
60+
5561
<dependency>
5662
<groupId>org.springframework.boot</groupId>
5763
<artifactId>spring-boot-starter-test</artifactId>

0 commit comments

Comments
 (0)