manniru
12/11/2018 - 10:48 AM

mannir_nextcloud_stack.yml

version: '2'

services:
  db:
    restart: always
    image: mariadb:10.1
    mem_limit: 256M
    volumes:
      - NEXTCLOUD_MARIADB:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=secret
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_PASSWORD=secret
      - TZ=Europe/Zurich

  nextcloud:
    restart: always
    image: quay.io/rootlogin/nextcloud:latest
    mem_limit: 1G
    volumes:
      - /data/nextcloud:/data
    environment:
      - TZ=Europe/Zurich
    ports:
      - "127.0.0.1:80:80"
    links:
      - db
    depends_on:
      - db