Add the possibility of using redis
This commit is contained in:
25
compose.redis.yml
Normal file
25
compose.redis.yml
Normal file
@ -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:
|
||||||
|
|
Reference in New Issue
Block a user