version: "2" services: nextcloud: image: linuxserver/nextcloud container_name: nextcloud environment: - PUID=1002 #change PUID if needed - PGID=100 #change PGID if needed - TZ=Australia/Perth #change Time Zone if needed volumes: /srv/dev-disk-by-label-Jumbo/appdata - /srv/dev-disk-by-label-Jumbo/appdata/nextcloud/config:/config - /srv/dev-disk-by-label-Jumbo/appdata/nextcloud/data:/data depends_on: - mariadb # ports: # uncomment this and the next line if you want to bypass the proxy # - 450:443 restart: unless-stopped mariadb: image: linuxserver/mariadb container_name: nextclouddb environment: - PUID=1002 #change PUID if needed - PGID=100 #change PGID if needed - MYSQL_ROOT_PASSWORD=mariadb #change password - TZ=Australia/Perth volumes: - /srv/dev-disk-by-label-Jumbo/appdata/nextclouddb:/config restart: unless-stopped letsencrypt: image: linuxserver/letsencrypt container_name: letsencrypt cap_add: - NET_ADMIN environment: - PUID=1002 #change PUID if needed - PGID=100 #change PGID if needed - TZ=Australia/Perth - URL=yourdomain.url #insert your domain name - yourdomain.url - SUBDOMAINS=www - VALIDATION=http - EMAIL=me@email.com # define email; required to renew certificate volumes: - /srv/dev-disk-by-label-Jumbo/appdata/letsencrypt:/config ports: - 444:443 - 81:80 restart: unless-stopped