You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
914 B
40 lines
914 B
services:
|
|
cloudreve:
|
|
image: cloudreve/cloudreve:latest
|
|
container_name: cloudreve-backend
|
|
depends_on:
|
|
- postgresql
|
|
- redis
|
|
restart: always
|
|
ports:
|
|
- 5212:5212
|
|
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:latest
|
|
container_name: postgresql
|
|
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
|
|
volumes:
|
|
- redis_data:/data
|
|
|
|
volumes:
|
|
backend_data:
|
|
database_postgres:
|
|
redis_data:
|