From c2506565837a85ecc83e2df913ed91f79b765f3f Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 8 Sep 2022 14:16:31 +0200 Subject: [PATCH] added nextcloud --- README.md | 2 ++ nextcloud/README.md | 11 +++++++++ nextcloud/docker-compose.yaml | 46 +++++++++++++++++++++++++++++++++++ nextcloud/env_example | 6 +++++ 4 files changed, 65 insertions(+) create mode 100644 nextcloud/README.md create mode 100644 nextcloud/docker-compose.yaml create mode 100644 nextcloud/env_example diff --git a/README.md b/README.md index ba7769f..5dccb9a 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ Repository for ready-to-go Services running in docker containers via docker-comp - InfluxDB / Grafana / Telegraf / Caddy - all in one container stack for running a stack for fetching, storing and visualizing time series data - secured by Caddy proxy + - Nextcloud + - selfhosted file storage and sharing platform - Seafile - selfhosted file storage and sharing platform - Uptime Kuma diff --git a/nextcloud/README.md b/nextcloud/README.md new file mode 100644 index 0000000..bcaaf05 --- /dev/null +++ b/nextcloud/README.md @@ -0,0 +1,11 @@ +# Nextcloud docker container + +### requirements: + + - installed system with docker-compose + - running in /services/nextcloud/ + - adjust env_example and rename to .env + - on setup use MySQL and nextcloud-db as host + +Website: +https://nextcloud.com diff --git a/nextcloud/docker-compose.yaml b/nextcloud/docker-compose.yaml new file mode 100644 index 0000000..bfffea9 --- /dev/null +++ b/nextcloud/docker-compose.yaml @@ -0,0 +1,46 @@ +version: '3.3' +services: + nextcloud-db: + image: mariadb + container_name: nextcloud-db + command: --transaction-isolation=READ-COMMITTED --log-bin=ROW --innodb_read_only_compressed=OFF + restart: unless-stopped + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - ./db:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} + - MYSQL_PASSWORD=${MYSQL_PASSWORD} + - MYSQL_DATABASE=${MYSQL_DATABASE} + - MYSQL_USER=${MYSQL_USER} + - MYSQL_INITDB_SKIP_TZINFO=1 + networks: + - nextcloud-net + nextcloud-redis: + image: redis:alpine + container_name: nextcloud-redis + hostname: nextcloud-redis + networks: + - nextcloud-net + restart: unless-stopped + command: redis-server --requirepass ${REDIS_PASS} + nextcloud-app: + image: nextcloud + container_name: nextcloud-app + restart: unless-stopped + depends_on: + - nextcloud-db + - nextcloud-redis + ports: + - ${PORT}:80" + environment: + REDIS_HOST: nextcloud-redis + REDIS_HOST_PASSWORD: ${REDIS_PASS} + volumes: + - ./app:/var/www/html + - ./data:/var/www/html/data + networks: + - nextcloud-net +networks: + nextcloud-net: diff --git a/nextcloud/env_example b/nextcloud/env_example new file mode 100644 index 0000000..bda2d36 --- /dev/null +++ b/nextcloud/env_example @@ -0,0 +1,6 @@ +MYSQL_ROOT_PASSWORD= +MYSQL_PASSWORD= +MYSQL_DATABASE= +MYSQL_USER= +REDIS_PASS= +PORT=