Docker-Compose for Nextcloud

31.08.2020

Last modified: 31.08.2020
estimated reading time < 1 min

The compose-file will pull the latest linuxserver/nextcloud container. Here is the file

---
version: "2"
services:
  nextcloud:
    image: linuxserver/nextcloud
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=100
      - TZ=Asia/Bangkok
      - REDIS_HOST=redis
    volumes:
      - /share/Container/container-data/nextcloud/config:/config
      - /share/Container/container-data/nextcloud/data:/data
      - /share/Multimedia/music:/shared/music
      - /share/Multimedia/TVShows:/shared/TVShows
      - /share/Multimedia/movies:/shared/movies
      - /share/homes/lars:/shared/homes
    ports:
      - 8243:443
    restart: unless-stopped
  redis:
    image: redis:latest
    container_name: redis
    restart: unless-stopped
    volumes:
      - /share/Container/container-data/nextcloud/redis:/var/lib/redis
    ports:
      - 6379:6379

Tags:
Was this article helpful?
Dislike 0
Views: 14

Search