mirror of
https://github.com/cloudreve/cloudreve.git
synced 2026-03-03 00:37:01 +00:00
fix: Some containers won't auto restart in the current Docker Compose (#2932)
Add "restart: unless-stopped" to the database and redis container.
This commit is contained in:
@@ -5,7 +5,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- postgresql
|
- postgresql
|
||||||
- redis
|
- redis
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 5212:5212
|
- 5212:5212
|
||||||
- 6888:6888
|
- 6888:6888
|
||||||
@@ -26,6 +26,7 @@ services:
|
|||||||
# backup & consult https://www.postgresql.org/docs/current/pgupgrade.html
|
# backup & consult https://www.postgresql.org/docs/current/pgupgrade.html
|
||||||
image: postgres:17
|
image: postgres:17
|
||||||
container_name: postgresql
|
container_name: postgresql
|
||||||
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=cloudreve
|
- POSTGRES_USER=cloudreve
|
||||||
- POSTGRES_DB=cloudreve
|
- POSTGRES_DB=cloudreve
|
||||||
@@ -36,6 +37,7 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
container_name: redis
|
container_name: redis
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- redis_data:/data
|
- redis_data:/data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user