Created
March 1, 2020 18:16
-
-
Save madhums/e7625a793a80540e5f6275b686ff73b0 to your computer and use it in GitHub Desktop.
nextcloud docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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