NextCloud on Docker 2024
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
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.