Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nextcloud docker
version: '3.2'
services:
nc:
image: nextcloud
volumes:
- ./nextcloud:/var/www/html
ports:
- 8080:80
depends_on:
- db
environment:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=admin
- MYSQL_PASSWORD=admin
- MYSQL_HOST=db
- NEXTCLOUD_ADMIN_USER=admin
- NEXTCLOUD_ADMIN_PASSWORD=admin
db:
image: mariadb
volumes:
- ./db:/var/lib/mysql
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
environment:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=admin
- MYSQL_PASSWORD=admin
- MYSQL_ROOT_PASSWORD=admin
volumes:
nextcloud:
db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment