Skip to content

Instantly share code, notes, and snippets.

@dnburgess
Created June 29, 2020 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnburgess/f581fdcee738f96bde5e3a82482b2636 to your computer and use it in GitHub Desktop.
Save dnburgess/f581fdcee738f96bde5e3a82482b2636 to your computer and use it in GitHub Desktop.
Nextcloud on RPi
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: yobasystems/alpine-mariadb:latest
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=P@55W0rD!
- MYSQL_PASSWORD=P@55W0rD!
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
ports:
- 8080:80
links:
- db
volumes:
- nextcloud:/var/www/html #change "nextcloud" to your data storage path
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment