version: '3' services: nextcloud: image: ucommandit/nextcloud container_name: ${NEXTCLOUD_NAME:-nextcloud} entrypoint: /opt/bin/boot hostname: ${NEXTCLOUD_NAME:-nextcloud} # restart: ${RESTART:-unless-stopped} env_file: ${ENV_FILE} ports: - "${NEXTCLOUD_PORT:-8080}:8080" - "${SUPERVISOR_PORT:-9001}:9001" volumes: # - nextcloud:/opt/nextcloud - opt:/opt volumes: # nextcloud: # driver: local # driver_opts: # o: bind # type: none # device: ${PWD}/nextcloud opt: driver: local driver_opts: o: bind type: none device: ${PWD}/opt