File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ services:
12
12
SPRING_DATASOURCE_PASSWORD : password
13
13
depends_on :
14
14
- db
15
+ - cache
15
16
db :
16
17
image : postgres:latest
17
18
environment :
@@ -23,8 +24,19 @@ services:
23
24
- " 5433:5433"
24
25
volumes :
25
26
- db_data:/var/lib/postgresql/data
26
- # I use this command to force the image to use port 5433
27
- command : ["postgres", "-p", "5433"]
27
+ # I use this command to force the image to use port 5433
28
+ command : [ "postgres", "-p", "5433" ]
29
+
30
+ cache :
31
+ image : redis:6.2-alpine
32
+ restart : always
33
+ ports :
34
+ - " 6379:6379"
35
+ command : redis-server --save 20 1 --loglevel warning
36
+ volumes :
37
+ - cache:/data
28
38
29
39
volumes :
30
- db_data:
40
+ db_data :
41
+ cache :
42
+ driver : local
Original file line number Diff line number Diff line change 95
95
<artifactId >springdoc-openapi-starter-webmvc-ui</artifactId >
96
96
<version >2.6.0</version >
97
97
</dependency >
98
+
99
+ <dependency >
100
+ <groupId >org.springframework.boot</groupId >
101
+ <artifactId >spring-boot-starter-data-redis</artifactId >
102
+ <version >3.3.5</version >
103
+ </dependency >
104
+
98
105
</dependencies >
99
106
100
107
<build >
127
134
<version >0.8.11</version >
128
135
<configuration >
129
136
<excludes >
130
- <exclude >com/wora/state_of_dev/survey/application/mapper/**</exclude > <!-- Exclude MapStruct package -->
137
+ <exclude >com/wora/state_of_dev/survey/application/mapper/**
138
+ </exclude > <!-- Exclude MapStruct package -->
131
139
</excludes >
132
140
</configuration >
133
141
<executions >
You can’t perform that action at this time.
0 commit comments