Skip to content

Instantly share code, notes, and snippets.

@dnburgess
Created October 28, 2020 22:49
Show Gist options
  • Save dnburgess/fdcaf27280e031fe88dd2fb9728649f6 to your computer and use it in GitHub Desktop.
Save dnburgess/fdcaf27280e031fe88dd2fb9728649f6 to your computer and use it in GitHub Desktop.

Revisions

  1. dnburgess created this gist Oct 28, 2020.
    28 changes: 28 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    version: '2'

    volumes:
    nextcloud:
    db:

    services:
    db:
    image: yobasystems/alpine-mariadb:latest
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
    volumes:
    - /srv/dev-disk-by-label-Files/Databases/NextCloud:/var/lib/mysql
    environment:
    - MYSQL_ROOT_PASSWORD=nextcloud
    - MYSQL_PASSWORD=nextcloud
    - MYSQL_DATABASE=nextcloud
    - MYSQL_USER=nextcloud

    app:
    image: nextcloud
    ports:
    - 8080:80
    links:
    - db
    volumes:
    - /srv/dev-disk-by-label-Files/Config/Nextcloud:/var/www/html
    restart: always