version: "3" services: cloud_db: image: ghcr.io/linuxserver/mariadb container_name: cloud_db restart: always volumes: - ./database:/config environment: - PUID=1000 - PGID=1000 - TZ=Europe/Berlin - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} - MYSQL_PASSWORD=${MYSQL_PASSWORD} - MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_USER=${MYSQL_USER} labels: - "com.centurylinklabs.watchtower.enable=false" cloud_redis: image: redis:alpine volumes: - ./redis:/data container_name: cloud_redis restart: always cloud: image: ghcr.io/linuxserver/nextcloud container_name: cloud environment: - PUID=1000 - PGID=1000 - TZ=Europe/Berlin - MYSQL_HOST=cloud_db - REDIS_HOST=cloud_redis depends_on: - cloud_db - cloud_redis volumes: - ./config:/config - cloud:/data ports: - 8100:443 labels: - "com.centurylinklabs.watchtower.enable=false" restart: unless-stopped volumes: cloud: name: cloud driver: local driver_opts: type: nfs o: addr=${NFS_SERVER},rw device: ":${PFAD}"