Fully reordered file structure. All files splitted by servises. Manuals will be added where needed.

This commit is contained in:
Max Buz
2023-09-22 17:31:13 +02:00
committed by GitHub
commit 54e66e3af9
15 changed files with 287 additions and 0 deletions

48
nextcloud/nextcloud.yaml Normal file
View File

@@ -0,0 +1,48 @@
version: '3.3'
services:
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud
env_file:
- stack.env
environment:
- PUID=1000
- PGID=1000
- PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}
- PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}
- TZ=${TZ}
volumes:
- ${CONFIG}:/config
- ${DATA}:/data
ports:
- 5443:443
restart: unless-stopped
links:
- nextcloud-mariadb
depends_on:
- nextcloud-mariadb
nextcloud-mariadb:
image: lscr.io/linuxserver/mariadb:latest
container_name: nextloud-mariadb
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- ${MARIADB}:/config
ports:
- 5306:3306
restart: unless-stopped
networks:
default:
name: nextcloud
driver: bridge

View File

@@ -0,0 +1,21 @@
# Overall and upload PHP limits
PHP_MEMORY_LIMIT=2048M
PHP_UPLOAD_LIMIT=5120M
# Timezone
TZ=Europe/Warsaw
# Where config will be stored
CONFIG=/path/to/config_folder
# Where the data (files) will be stored
DATA=/path/to/data_folder
# MySQL password for the root account
MYSQL_ROOT_PASSWORD=super_duper_strong_password
# MySQL password for the nextcloud account
MYSQL_PASSWORD=another_one_strong_password
# Folder, where database will be stored
MARIADB=/path/to/mariadb/folder