2023-05-25 14:26:13 +02:00
|
|
|
---
|
2021-06-11 15:05:20 +02:00
|
|
|
volumes:
|
|
|
|
nextcloud-data:
|
|
|
|
nextcloud-db:
|
|
|
|
services:
|
|
|
|
nextcloud-app:
|
2024-04-25 11:27:13 +02:00
|
|
|
image: docker.io/library/nextcloud:29.0.0-apache
|
2023-05-25 14:26:13 +02:00
|
|
|
container_name: nextcloud-app
|
|
|
|
ports:
|
|
|
|
- 80:80
|
2021-06-11 15:05:20 +02:00
|
|
|
volumes:
|
|
|
|
- nextcloud-data:/var/www/html
|
|
|
|
environment:
|
2022-11-17 08:51:59 +01:00
|
|
|
- MYSQL_PASSWORD=$MYSQL_PASSWORD
|
|
|
|
- MYSQL_DATABASE=$MYSQL_DATABASE
|
|
|
|
- MYSQL_USER=$MYSQL_USER
|
2021-06-11 15:05:20 +02:00
|
|
|
- MYSQL_HOST=nextcloud-db
|
2023-05-25 14:26:13 +02:00
|
|
|
restart: unless-stopped
|
2021-06-11 15:05:20 +02:00
|
|
|
nextcloud-db:
|
2024-04-25 12:12:40 +02:00
|
|
|
# See compatibility matrix for Nextcloud 29
|
|
|
|
# https://docs.nextcloud.com/server/29/admin_manual/installation/system_requirements.html
|
2024-05-24 05:31:06 +02:00
|
|
|
image: docker.io/library/mariadb:10.6.18
|
2023-05-25 14:26:13 +02:00
|
|
|
container_name: nextcloud-db
|
2021-06-11 15:05:20 +02:00
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
|
|
volumes:
|
|
|
|
- nextcloud-db:/var/lib/mysql
|
|
|
|
environment:
|
2022-11-17 08:51:59 +01:00
|
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=true
|
|
|
|
- MYSQL_PASSWORD=$MYSQL_PASSWORD
|
|
|
|
- MYSQL_DATABASE=$MYSQL_DATABASE
|
|
|
|
- MYSQL_USER=$MYSQL_USER
|
2024-02-22 19:01:59 +01:00
|
|
|
restart: unless-stopped
|