Skip to content

Instantly share code, notes, and snippets.

@hughesjs
Created June 27, 2019 18:19
Show Gist options
  • Save hughesjs/79cf781432370fbb11223c99256dfdbb to your computer and use it in GitHub Desktop.
Save hughesjs/79cf781432370fbb11223c99256dfdbb to your computer and use it in GitHub Desktop.
version: '3'
volumes:
db:
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=iamthemysqlwizard
- MYSQL_PASSWORD=iamthemysqlwizard
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
ports:
- 6666:80
links:
- db
volumes:
- /mnt/raid/next-cloud/html:/var/www/html
- /mnt/raid/next-cloud/apps:/var/www/html/custom_apps
- /mnt/raid/next-cloud/config:/var/www/html/config
- /mnt/raid/next-cloud/data:/var/www/html/data
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment