Init with default docker compose file
This commit is contained in:
6
.env.example
Normal file
6
.env.example
Normal file
@@ -0,0 +1,6 @@
|
||||
# Pro edition only: license key from https://cloudreve.org/login
|
||||
#CR_LICENSE_KEY=
|
||||
|
||||
# Full-text search only: Meilisearch master key
|
||||
# Generate with: openssl rand -hex 32
|
||||
#MEILI_MASTER_KEY=
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.env
|
||||
3
README.md
Normal file
3
README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Cloudreve Docker Compoase
|
||||
|
||||
Please refer to https://docs.cloudreve.org/zh/overview/deploy/docker-compose
|
||||
35
docker-compose.fts.yml
Normal file
35
docker-compose.fts.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
# Full-text search addon: Apache Tika + Meilisearch
|
||||
#
|
||||
# Usage:
|
||||
# Community:
|
||||
# docker compose -f docker-compose.yml -f docker-compose.fts.yml up -d
|
||||
# Pro:
|
||||
# docker compose -f docker-compose.yml -f docker-compose.pro.yml -f docker-compose.fts.yml up -d
|
||||
#
|
||||
# Set MEILI_MASTER_KEY in .env or export it as an environment variable.
|
||||
# Generate one with: openssl rand -hex 32
|
||||
|
||||
services:
|
||||
cloudreve:
|
||||
depends_on:
|
||||
tika:
|
||||
condition: service_started
|
||||
meilisearch:
|
||||
condition: service_started
|
||||
|
||||
tika:
|
||||
image: apache/tika:latest
|
||||
container_name: tika
|
||||
restart: unless-stopped
|
||||
|
||||
meilisearch:
|
||||
image: getmeili/meilisearch:latest
|
||||
container_name: meilisearch
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
|
||||
volumes:
|
||||
- meili_data:/meili_data
|
||||
|
||||
volumes:
|
||||
meili_data:
|
||||
15
docker-compose.pro.yml
Normal file
15
docker-compose.pro.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
# Pro edition override: apply on top of docker-compose.yml
|
||||
#
|
||||
# Usage:
|
||||
# docker compose -f docker-compose.yml -f docker-compose.pro.yml up -d
|
||||
#
|
||||
# Prerequisites:
|
||||
# 1. Log in to the Pro image registry:
|
||||
# docker login -u <username> -p <password> cloudreve.azurecr.io
|
||||
# 2. Set CR_LICENSE_KEY in .env or export it as an environment variable.
|
||||
|
||||
services:
|
||||
cloudreve:
|
||||
image: cloudreve.azurecr.io/cloudreve/pro:v4
|
||||
environment:
|
||||
- CR_LICENSE_KEY=${CR_LICENSE_KEY}
|
||||
46
docker-compose.yml
Normal file
46
docker-compose.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
services:
|
||||
cloudreve:
|
||||
image: cloudreve/cloudreve:v4
|
||||
container_name: cloudreve
|
||||
depends_on:
|
||||
postgresql:
|
||||
condition: service_started
|
||||
redis:
|
||||
condition: service_started
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 5212:5212
|
||||
- 6888:6888
|
||||
- 6888:6888/udp
|
||||
environment:
|
||||
- CR_CONF_Database.Type=postgres
|
||||
- CR_CONF_Database.Host=postgresql
|
||||
- CR_CONF_Database.User=cloudreve
|
||||
- CR_CONF_Database.Name=cloudreve
|
||||
- CR_CONF_Database.Port=5432
|
||||
- CR_CONF_Redis.Server=redis:6379
|
||||
volumes:
|
||||
- backend_data:/cloudreve/data
|
||||
|
||||
postgresql:
|
||||
image: postgres:17
|
||||
container_name: postgresql
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=cloudreve
|
||||
- POSTGRES_DB=cloudreve
|
||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||
volumes:
|
||||
- database_postgres:/var/lib/postgresql/data
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
container_name: redis
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
|
||||
volumes:
|
||||
backend_data:
|
||||
database_postgres:
|
||||
redis_data:
|
||||
Reference in New Issue
Block a user