services: nextcloud-aio-mastercontainer: image: nextcloud/all-in-one:latest init: true restart: always container_name: nextcloud-aio-mastercontainer # This is required and cannot be changed volumes: - nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This is required for backups - /var/run/docker.sock:/var/run/docker.sock:ro # Required for container management network_mode: bridge environment: APACHE_PORT: ${APACHE_PORT} ports: - ${APP_PORT}:8080 - ${APP_PORT_HTTPS}:443 volumes: nextcloud_aio_mastercontainer: name: nextcloud_aio_mastercontainer