Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A docker-compose file for NextCloud
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb:10.0
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
ports:
- 8080:81
links:
- db
volumes:
- nextcloud:/var/www/html
restart: always
environment:
- NEXTCLOUD_ADMIN_PASSWORD=password
- NEXTCLOUD_ADMIN_USER=nextcloud
adminer:
image: adminer
restart: always
ports:
- 8081:8082
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.