christianlempa-boilerplates/docker-compose/nextcloud/docker-compose.yaml
Christoph Schug 9d609ca42b chore: pin version of Nextcloud to 28.0.3-apache
The `apache` variant was taken because the `latest` tag, which was in
use so far, also matches the `apache` variant.
2024-03-05 12:00:50 +01:00

31 lines
812 B
YAML

---
volumes:
nextcloud-data:
nextcloud-db:
services:
nextcloud-app:
image: docker.io/library/nextcloud:28.0.3-apache
container_name: nextcloud-app
ports:
- 80:80
volumes:
- nextcloud-data:/var/www/html
environment:
- MYSQL_PASSWORD=$MYSQL_PASSWORD
- MYSQL_DATABASE=$MYSQL_DATABASE
- MYSQL_USER=$MYSQL_USER
- MYSQL_HOST=nextcloud-db
restart: unless-stopped
nextcloud-db:
image: mariadb:latest
container_name: nextcloud-db
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- nextcloud-db:/var/lib/mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=true
- MYSQL_PASSWORD=$MYSQL_PASSWORD
- MYSQL_DATABASE=$MYSQL_DATABASE
- MYSQL_USER=$MYSQL_USER
restart: unless-stopped