NextCloud
The most popular open source content collaboration platform for tens of millions of users at thousands of organizations across the globe
Website: https://nextcloud.com/
docker-compose.yaml
version: "3.2"
services:
  db:
    image: mariadb:10.5.11
    container_name: nextcloud_db
    restart: unless-stopped
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=<your_mysql_root_password>
      - MYSQL_PASSWORD=<your_mysql_password>
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
  app:
    image: nextcloud
    container_name: nextcloud_app
    restart: unless-stopped
    ports:
      - <port>:80
    links:
      - db
    volumes:
      - app:/var/www/html
      - data:/var/www/html/data
    environment:
      - MYSQL_PASSWORD=<your_mysql_password>
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db
      - NEXTCLOUD_DATA_DIR=/var/www/html/data
      
volumes:
  app:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: /path/to/nextcloud/app
  data:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: /path/to/nextcloud/data
  db:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: /path/to/nextcloud/db 
                