1
0
Fork 0

added nextcloud

This commit is contained in:
leo 2022-09-08 14:16:31 +02:00
parent dc68fc6e8f
commit c250656583
4 changed files with 65 additions and 0 deletions

View file

@ -23,6 +23,8 @@ Repository for ready-to-go Services running in docker containers via docker-comp
- InfluxDB / Grafana / Telegraf / Caddy - InfluxDB / Grafana / Telegraf / Caddy
- all in one container stack for running a stack for fetching, storing and visualizing time series data - all in one container stack for running a stack for fetching, storing and visualizing time series data
- secured by Caddy proxy - secured by Caddy proxy
- Nextcloud
- selfhosted file storage and sharing platform
- Seafile - Seafile
- selfhosted file storage and sharing platform - selfhosted file storage and sharing platform
- Uptime Kuma - Uptime Kuma

11
nextcloud/README.md Normal file
View file

@ -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

View file

@ -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:

6
nextcloud/env_example Normal file
View file

@ -0,0 +1,6 @@
MYSQL_ROOT_PASSWORD=
MYSQL_PASSWORD=
MYSQL_DATABASE=
MYSQL_USER=
REDIS_PASS=
PORT=