Skip to content

Instantly share code, notes, and snippets.

@ctorgalson
Last active August 17, 2020 07:45
Show Gist options
  • Save ctorgalson/0a05ef42acb931529c58c50b37b62dc6 to your computer and use it in GitHub Desktop.
Save ctorgalson/0a05ef42acb931529c58c50b37b62dc6 to your computer and use it in GitHub Desktop.
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=nextcloud_mysql_root_pass
- MYSQL_PASSWORD=nextcloud_mysql_pass
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
ports:
- 8080:80
links:
- db
volumes:
- nextcloud:/var/www/html
environment:
- NEXTCLOUD_ADMIN_USER=nc_admin
- NEXTCLOUD_ADMIN_PASSWORD=nc_admin_password
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment