docker-compose up
Nextcloud will be running at http://localhost:48916
Go to this address in a web browser and set up an admin account, e.g., username "admin", password "password"
The docker-compose.yml
file is modified from https://github.com/nextcloud/docker/blob/f4dbcf523a27ba240b29dcf92b24d0c20544b42d/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml
To access from other devices on the local network, http://192.168.1.227:8080 must be added to "trusted_domains" (see https://help.nextcloud.com/t/howto-add-a-new-trusted-domain/26). Using the environment variable NEXTCLOUD_TRUSTED_DOMAINS
didn't work, so instead, use a custom config.php
file. This file must be given write access:
# grant write access to config.php
chmod a+w config.php
Actually it might be better to not replace the config.php
file. Instead, go into the docker container (app
) and run something like:
su -p www-data -s /bin/sh -c "php /var/www/html/occ config:system:set trusted_domains 1 --value=192.168.0.111"
Nextcloud cannot be accessed from outside the local network. This is (in part) because SSL needs to be set up. In the future, look into allowing this by doing something like this: https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/with-nginx-proxy/postgres/apache