James Thomas

NextCloud Deployment

NextCloud is seriously my favorite FOSS pick of the year. The team that's been working on it (450+ contributors!) are super solid. Here's a quick look at the app (with a Panic Vault theme):

Why NextCloud Over OwnCloud?

I'll come back to this one later, but the big difference here is that NextCloud is a true fork of OwnCloud, and is set on the idea that all features should be totally opensource and free. My fear is that OwnCloud will one day lock away the important features (see: security) behind a paywall.

Screenshots

And of course our paste-ready docker-compose.yml:

version: '2'
services:
  nextcloud:
    image: wonderfall/nextcloud
    environment:
      APC_SHM_SIZE: 128M
      CRON_PERIOD: 15m
      DB_HOST: nextcloud-db
      DB_NAME: nextcloud
      DB_PASSWORD: SOME-PW
      DB_TYPE: mysql
      DB_USER: nextcloud
      DOMAIN: test.com
      GID: '1000'
      OPCACHE_MEM_SIZE: '128'
      TZ: America/New_York
      UID: '1000'
      UPLOAD_MAX_SIZE: 10G
    volumes:
    - /data/nextcloud/data:/data
    - /data/nextcloud/config:/config
    - /data/nextcloud/apps:/apps2
    - /data/nextcloud/themes:/nextcloud/themes
    links:
    - nextcloud-db:nextcloud-db
    - redis:redis
    labels:
      io.rancher.scheduler.affinity:host_label: home=true
  nextcloud-db:
    image: mariadb:10
    environment:
      MYSQL_DATABASE: nextcloud
      MYSQL_PASSWORD: SOME-PW
      MYSQL_ROOT_PASSWORD: SOME-PW
      MYSQL_USER: nextcloud
    volumes:
    - /data/nextcloud/db:/var/lib/mysql
    labels:
      io.rancher.scheduler.affinity:host_label: home=true
  redis:
    image: redis:alpine
    volumes:
    - /data/nextcloud/redis:/data
    labels:
      io.rancher.scheduler.affinity:host_label: home=true