mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-03-11 02:16:52 +08:00
Update docker-compose.yml (#1727)
add Redis retains login sessions after restarting
This commit is contained in:
@@ -1,5 +1,14 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
services:
|
services:
|
||||||
|
redis:
|
||||||
|
container_name: redis
|
||||||
|
image: bitnami/redis:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- ALLOW_EMPTY_PASSWORD=yes
|
||||||
|
volumes:
|
||||||
|
- redis_data:/bitnami/redis/data
|
||||||
|
|
||||||
cloudreve:
|
cloudreve:
|
||||||
container_name: cloudreve
|
container_name: cloudreve
|
||||||
image: cloudreve/cloudreve:latest
|
image: cloudreve/cloudreve:latest
|
||||||
@@ -14,6 +23,7 @@ services:
|
|||||||
- ./cloudreve/avatar:/cloudreve/avatar
|
- ./cloudreve/avatar:/cloudreve/avatar
|
||||||
depends_on:
|
depends_on:
|
||||||
- aria2
|
- aria2
|
||||||
|
|
||||||
aria2:
|
aria2:
|
||||||
container_name: aria2
|
container_name: aria2
|
||||||
image: p3terx/aria2-pro # third party image, please keep notice what you are doing
|
image: p3terx/aria2-pro # third party image, please keep notice what you are doing
|
||||||
@@ -25,9 +35,11 @@ services:
|
|||||||
- ./aria2/config:/config
|
- ./aria2/config:/config
|
||||||
- temp_data:/data
|
- temp_data:/data
|
||||||
volumes:
|
volumes:
|
||||||
|
redis_data:
|
||||||
|
driver: local
|
||||||
temp_data:
|
temp_data:
|
||||||
driver: local
|
driver: local
|
||||||
driver_opts:
|
driver_opts:
|
||||||
type: none
|
type: none
|
||||||
device: $PWD/data
|
device: $PWD/data
|
||||||
o: bind
|
o: bind
|
||||||
|
|||||||
Reference in New Issue
Block a user