Nextcloud hinzugefügt

This commit is contained in:
borgal
2021-08-29 20:13:07 +00:00
parent 58f082e254
commit 0be558a153
3 changed files with 130 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
version: '3.9'
services:
db:
image: mariadb
container_name: nextcloud_db
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- ./datanbank:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
redis:
image: redis:alpine
container_name: nextcloud_redis
restart: always
app:
build: .
container_name: nextcloud_app
restart: always
ports:
- 8088:80
volumes:
- ./daten:/var/www/html
environment:
- MYSQL_HOST=db
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- REDIS_HOST=redis
depends_on:
- db
- redis
cron:
image: nextcloud:apache
container_name: nextcloud_cron
restart: always
volumes:
- ./daten:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
- redis