NextCloud

Installing


dnf install docker
sudo groupadd docker
sudo usermod -aG docker $(whoami)
service docker start
or curl -fsSL https://get.docker.com | sudo sh```

    docker run -d -p 8080:80 nextcloud

### stopping

    docker ps -a -q

and then

    docker stop f12c523cef59

## Addons
- https://github.com/nextcloud/deck
- https://github.com/nextcloud/mail#readme
- https://github.com/nextcloud/notes
- https://github.com/nextcloud/bookmarks
- https://apps.nextcloud.com/apps/passwords
- https://apps.nextcloud.com/apps/passwords

# Memories

## find docker container

`docker ps -a`

## run

`docker exec -ti --user www-data f12c523cef59 /var/www/html/occ files:scan --all`

`docker exec -ti --user www-data f12c523cef59 /var/www/html/occ memories:index --force`

`./lib/docker/volumes/a06e6e438992f400970064342b33c6bf4b6c54b327df33d2e406fd7f638f4535/_data/data/martin/`

## find data dir

`docker exec -ti --user www-data f12c523cef59 /var/www/html/occ config:system:get datadirectory`

## setting trusted domains

`sudo docker exec -u www-data [container name] occ config:system:set trusted_domains 0 --value=your.domain`

e.g

`docker exec -ti --user www-data f12c523cef59 /var/www/html/occ config:system:set trusted_domains 0 --value=192.168.68.72`

or edit `/var/lib/docker/volumes/a06e6e438992f400970064342b33c6bf4b6c54b327df33d2e406fd7f638f4535/_data/config/config.php` 
and restart