Add Cloudreve template (#649)

Self-hosted file management and sharing system with multi-cloud storage support.
Includes PostgreSQL and Redis for database and caching.
This commit is contained in:
Firefly
2026-01-28 14:49:21 +08:00
committed by GitHub
parent 3395913afb
commit ebcaed8eea
4 changed files with 82 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@@ -0,0 +1,48 @@
version: "3.8"
services:
cloudreve:
image: cloudreve/cloudreve:4.10.1
depends_on:
postgresql:
condition: service_healthy
redis:
condition: service_started
restart: unless-stopped
environment:
- CR_CONF_Database.Type=postgres
- CR_CONF_Database.Host=postgresql
- CR_CONF_Database.User=${POSTGRES_USER}
- CR_CONF_Database.Password=${POSTGRES_PASSWORD}
- CR_CONF_Database.Name=${POSTGRES_DB}
- CR_CONF_Database.Port=5432
- CR_CONF_Redis.Server=redis:6379
volumes:
- cloudreve_data:/cloudreve/data
postgresql:
image: postgres:17
restart: unless-stopped
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
redis:
image: redis:8.4.0
restart: unless-stopped
volumes:
- redis_data:/data
volumes:
cloudreve_data:
postgres_data:
redis_data:

View File

@@ -0,0 +1,16 @@
[variables]
main_domain = "${domain}"
db_password = "${password:32}"
db_user = "cloudreve"
db_name = "cloudreve"
[config]
[[config.domains]]
serviceName = "cloudreve"
port = 5212
host = "${main_domain}"
[config.env]
POSTGRES_PASSWORD = "${db_password}"
POSTGRES_USER = "${db_user}"
POSTGRES_DB = "${db_name}"

View File

@@ -1317,6 +1317,24 @@
"tunnel"
]
},
{
"id": "cloudreve",
"name": "Cloudreve",
"version": "4.10.1",
"description": "Self-hosted file management and sharing system with multi-cloud storage support. Compatible with local, OneDrive, S3, and various cloud providers.",
"logo": "cloudreve.png",
"links": {
"github": "https://github.com/cloudreve/Cloudreve",
"website": "https://cloudreve.org",
"docs": "https://docs.cloudreve.org"
},
"tags": [
"storage",
"file-sharing",
"cloud",
"self-hosted"
]
},
{
"id": "cockpit",
"name": "Cockpit",