services: << service_name >>: image: nextcloud/all-in-one:latest init: true container_name: << service_name >> ports: - "<< port_admin >>:8080" environment: - APACHE_PORT=<< port_nextcloud >> - APACHE_IP_BINDING=0.0.0.0 - NEXTCLOUD_DATADIR=<< data_dir >>/<< service_name >>/ncdata - TZ=<< timezone >> volumes: - << service_name >>_config:/mnt/docker-aio-config - /var/run/docker.sock:/var/run/docker.sock:ro restart: unless-stopped volumes: << service_name >>_config: name: << service_name >>_config