Skip to content

Commit a362995

Browse files
authored
Merge pull request #20 from YuriiDorosh/features/redis
Features/redis
2 parents 1a7b006 + 1a71b42 commit a362995

2 files changed

Lines changed: 26 additions & 7 deletions

File tree

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ services:
3434
MYSQL_DATABASE: ci4
3535
MYSQL_ROOT_PASSWORD: root
3636

37+
redis:
38+
image: redis:latest
39+
ports:
40+
- "6379:6379"
41+
networks:
42+
- app-network
43+
3744
adminer:
3845
image: adminer
3946
restart: always

env

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@
3030
# DATABASE
3131
#--------------------------------------------------------------------
3232

33-
# database.default.hostname = localhost
34-
# database.default.database = ci4
35-
# database.default.username = root
36-
# database.default.password = root
37-
# database.default.DBDriver = MySQLi
38-
# database.default.DBPrefix =
39-
# database.default.port = 3306
33+
database.default.hostname = mysql
34+
database.default.database = ci4
35+
database.default.username = root
36+
database.default.password = root
37+
database.default.DBDriver = MySQLi
4038

4139
# database.tests.hostname = localhost
4240
# database.tests.database = ci4_test
@@ -141,3 +139,17 @@
141139
#--------------------------------------------------------------------
142140

143141
# curlrequest.shareOptions = false
142+
143+
#--------------------------------------------------------------------
144+
# CACHE
145+
#--------------------------------------------------------------------
146+
147+
cache.handler = redis
148+
cache.backupHandler = file
149+
cache.storePath = writable/cache/
150+
cache.prefix = ci4_
151+
cache.redis.host = redis
152+
cache.redis.password = null
153+
cache.redis.port = 6379
154+
cache.redis.timeout = 0
155+
cache.redis.database = 0

0 commit comments

Comments
 (0)