Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ngophuong/655742993b1b3fdab726e63e1daa4799 to your computer and use it in GitHub Desktop.
Save ngophuong/655742993b1b3fdab726e63e1daa4799 to your computer and use it in GitHub Desktop.
DB Tech NextCloud
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=HPe9jV3X9WJ53LCzrDqP
- MYSQL_PASSWORD=moViCr44vBhTjDaQEi5s
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
restart: always
ports:
- 6942:80
links:
- db
volumes:
- nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=moViCr44vBhTjDaQEi5s
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment