docker: Add redis section to docker-compose file
With a persistent volume.
This commit is contained in:
parent
53bd3b4e58
commit
de1c9c58ae
1 changed files with 8 additions and 0 deletions
|
@ -8,3 +8,11 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:8080:8080
|
- 127.0.0.1:8080:8080
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Uncomment if you want to use redis as cache
|
||||||
|
# redis:
|
||||||
|
# image: redis:alpine
|
||||||
|
# container_name: redis
|
||||||
|
# restart: unless-stopped
|
||||||
|
# volumes:
|
||||||
|
# - ./cache:/data
|
||||||
|
|
Loading…
Reference in a new issue