File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments