Unverified Commit 5267428d authored by Tom Moulard's avatar Tom Moulard
Browse files

nextcloud: docker-compose

parent 05f11a7e
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
version: '2'

services:
  nextcloud:
    image: nextcloud
    links:
      - nextcloud-db
    volumes:
      - './nextcloud/data:/var/www/html'
    networks:
      - 'srv'
    restart: always
    labels:
      - 'traefik.enable=true'
      - 'traefik.frontend.rule=Host:cloud.${SITE}'
      - 'traefik.port=80'

  nextcloud-db:
    image: mariadb
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - './nextcloud/db:/var/lib/mysql'
    environment:
      - 'MYSQL_ROOT_PASSWORD=pass'
      - 'MYSQL_PASSWORD='
      - 'MYSQL_DATABASE=nextcloud'
      - 'MYSQL_USER=nextcloud'
    restart: always
    labels:
      - 'traefik.enable=false'