NextCloud on Docker 2024

Use the following config to rapidly deploy a NextCloud container for testing purposes.

NextCloud on Docker 2024
Photo by C Dustin / Unsplash

Docker Compose

docker-compose.yml

version: "3.7"
services:
  nextcloud:
    image: nextcloud:latest
    container_name: nextcloud
    restart: always
    volumes:
      - nextcloud-data:/var/www/html
      - nextcloud:/var/www/html
    environment:
      SQLITE_DATABASE: db.sqlite
      url: https://sub.youdomain.com
      VIRTUAL_HOST: sub.youdomain.com
      LETSENCRYPT_HOST: sub.youdomain.com
    networks:
      - net
    ports:
      - 8888:80

volumes:
  nextcloud:
  nextcloud-data:

networks:
  net:
    external: true
Nginx Reverse Proxy | Auto HTTPS with Let’s Encrypt | Multiple Docker Containers
Combine the power of Nginx Reverse Proxy, Let’s Encrypt and Docker for a better web development and production experience

Issues

It is a convenient way to try out NextCloud in one-user scenario. However, you may run into issues utilising some of the advanced features like Federation Sharing or Nextcloud Office

Production

You may use the official AIO image for production use.

Nextcloud on AWS Linux 2023
using Nextcloud All-in-One Docker image to facilitate the installation of Nextcloud on AWS server