|
|
|
@ -1,14 +1,11 @@
|
|
|
|
|
# Nextcloud - свое облако для файлов
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Запуск через docker-compose. Для начала создадим файл `.env` со следующим содержанием:
|
|
|
|
|
|
|
|
|
|
```env title=".env"
|
|
|
|
|
PUID=
|
|
|
|
|
PGID=
|
|
|
|
|
TZ=
|
|
|
|
|
DOCKER_APP=
|
|
|
|
|
SECRETSDIR=
|
|
|
|
|
NEXTCLOUD_DOMAIN_NAME=
|
|
|
|
|
REDIS_PASSWORD=
|
|
|
|
|
```
|
|
|
|
@ -21,15 +18,14 @@ version: "3.7"
|
|
|
|
|
services:
|
|
|
|
|
# Nextcloud Docker Application
|
|
|
|
|
nextcloud:
|
|
|
|
|
image: nextcloud:25.0.4
|
|
|
|
|
image: nextcloud:28
|
|
|
|
|
container_name: nextcloud
|
|
|
|
|
restart: always
|
|
|
|
|
volumes:
|
|
|
|
|
- $DOCKER_APP/nextcloud:/var/www/html
|
|
|
|
|
- $DOCKER_APP/nextcloud/apps:/var/www/html/custom_apps
|
|
|
|
|
- $DOCKER_APP/nextcloud/config:/var/www/html/config
|
|
|
|
|
- /mnt/NAS/Nextcloud:/var/www/html/data
|
|
|
|
|
- /mnt:/mnt
|
|
|
|
|
- ./nextcloud:/var/www/html
|
|
|
|
|
- ./nextcloud/apps:/var/www/html/custom_apps
|
|
|
|
|
- ./nextcloud/config:/var/www/html/config
|
|
|
|
|
- ./nextcloud/data:/var/www/html/data
|
|
|
|
|
environment:
|
|
|
|
|
- POSTGRES_HOST=192.168.1.12
|
|
|
|
|
- POSTGRES_DB_FILE=/run/secrets/nextcloud_postgres_db
|
|
|
|
@ -37,8 +33,8 @@ services:
|
|
|
|
|
- POSTGRES_PASSWORD_FILE=/run/secrets/nextcloud_postgres_password
|
|
|
|
|
- NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/nextcloud_admin_password
|
|
|
|
|
- NEXTCLOUD_ADMIN_USER_FILE=/run/secrets/nextcloud_admin_user
|
|
|
|
|
- REDIS_HOST=172.18.3.249
|
|
|
|
|
- REDIS_HOST_PASSWORD=$REDIS_PASSWORD
|
|
|
|
|
#- REDIS_HOST=
|
|
|
|
|
#- REDIS_HOST_PASSWORD=
|
|
|
|
|
- PUID=$PUID
|
|
|
|
|
- PGID=$PGID
|
|
|
|
|
- TZ=$TZ
|
|
|
|
|