Add the possibility of using redis
This commit is contained in:
parent
6283627b87
commit
ab4614d2c9
|
@ -0,0 +1,25 @@
|
|||
version: "3.8"
|
||||
services:
|
||||
app:
|
||||
environment:
|
||||
- CACHE_DRIVER=redis
|
||||
- SESSION_DRIVER=redis
|
||||
- REDIS_SCHEME=tcp
|
||||
- REDIS_PATH=
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
- REDIS_DB="0"
|
||||
- REDIS_CACHE_DB="1"
|
||||
- REDIS_PASSWORD=null
|
||||
redis:
|
||||
image: redis:alpine
|
||||
command: redis-server
|
||||
volumes:
|
||||
- redis-data:/data
|
||||
- redis-conf:/usr/local/etc/redis/redis.conf
|
||||
networks:
|
||||
- internal
|
||||
volumes:
|
||||
redis-data:
|
||||
redis-conf:
|
||||
|
Loading…
Reference in New Issue