From e549e092a92c3bb6c886f74be35e055bf522e82c Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Thu, 30 Apr 2020 01:05:11 +0300 Subject: [PATCH] NextCloud prototype added. --- README.md | 1 + nextcloud/.env.dist | 16 ++++++++++++++++ nextcloud/docker-compose.yml | 20 ++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 nextcloud/.env.dist create mode 100644 nextcloud/docker-compose.yml diff --git a/README.md b/README.md index 603fcba..44df670 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ Not every stack is tested to fully work. - [ ] mariadb-common (prototype state) - [ ] mastodon (didn't work when tried to set up) - [x] Murmur (Mumble server) +- [ ] NextCloud - [x] Open Streaming Platform - [x] OpenVPN - [x] Portainer diff --git a/nextcloud/.env.dist b/nextcloud/.env.dist new file mode 100644 index 0000000..b9e020d --- /dev/null +++ b/nextcloud/.env.dist @@ -0,0 +1,16 @@ +PUID=1000 +PGID=1000 + +TZ=Europe/Moscow + +EXT_PORT=8443 + +# Volumes +# Database and configs +CONFIG_PATH=/path/to/config +# Location of user files +DATA_PATH=/path/to/data + +# Logs +LOG_MAX_SIZE=5m +LOG_MAX_FILE=5 diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml new file mode 100644 index 0000000..17e136e --- /dev/null +++ b/nextcloud/docker-compose.yml @@ -0,0 +1,20 @@ +version: '3.7' + +services: + nextcloud: + # https://hub.docker.com/r/linuxserver/nextcloud + image: linuxserver/nextcloud + container_name: nextcloud + #network_mode: "host" + ports: + - "${EXT_PORT}:443/tcp" + env_file: .env + volumes: + - "${CONFIG_PATH}:/config" + - "${DATA_PATH}:/data" + restart: unless-stopped + logging: + driver: "json-file" + options: + max-size: "${LOG_MAX_SIZE:-5m}" + max-file: "${LOG_MAX_FILE:-5}"