Skip to content

Instantly share code, notes, and snippets.

@madhums
Created March 1, 2020 18:16
Show Gist options
  • Save madhums/e7625a793a80540e5f6275b686ff73b0 to your computer and use it in GitHub Desktop.
Save madhums/e7625a793a80540e5f6275b686ff73b0 to your computer and use it in GitHub Desktop.
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