Installation Docker Nextcloud

docker_compose.yml

  1. nextcloud:
  2.   image: nextcloud/all-in-one:latest
  3.   restart: unless-stopped
  4.   init: true
  5.   container_name: nextcloud-aio-mastercontainer
  6.   ports:
  7. - "8080:8080"
  8.   environment:
  9. - APACHE_PORT=11000
  10. - APACHE_IP_BINDING=0.0.0.0
  11. - NEXTCLOUD_DATADIR=/mnt/cloud
  12. - NEXTCLOUD_UPLOAD_LIMIT=30G
  13.   volumes:
  14. - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
  15. - /var/run/docker.sock:/var/run/docker.sock:ro
  16.   depends_on:
  17. - caddy
  18.  
  19. volumes: # If you want to store the data on a different drive, see https://github.com/nextcloud/all-in-one#how-to-store-the-filesinstallation-on-a-separate-drive
  20.   nextcloud_aio_mastercontainer:
  21.   name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work

Caddyfile

https://cloud.dutriez.eu:443 {
        header Strict-Transport-Security max-age=31536000;
        reverse_proxy localhost:11000
    }


http://cloud.local  {
        reverse_proxy nextcloud-aio-mastercontainer:11000
}