2.3 KiB
nextcloud
The cloud for managing Data. Every member gets his own account and can save their data there. The data is stored on the communucation server (w10).
configdatein
config.php
docker network create "<network_name>"
After the creation is successful, add the Databas container to the network.
docker network attach "<network_name>" "<container_name>"
If you want to see if the container is added successfully, use the command
docker network inspect "<network_name>"
and look for the added container. Ad this point, the reverse proxy container should already be running. The manual entry for the reverse proxy nginx shows how it is setup to accept proxy input. In the next step create the nextcloud container as shown below (root access needed (sudo):
sudo docker run --name nextcloud \
-v "/home/<user>/cloud/data:/var/www/html/data" \
-v "/home/<user>/cloud/apps:/var/www/html/custom_apps" \
-v "/home/<user>/cloud:/var/www/html" \
-v "/home/<user>/cloud/config:/var/www/html/config" \
--network net -e VIRTUAL_HOST="<sub.domain.com>" \
-e LETSENCRYPT_HOST="<sub.domain.com>" \
-e MYSQL_HOST="madrigal_DB" -e MYSQL_PASSWORD="<your password>" \
-e MYSQL_DATABASE="nextcloud" -e MYSQL_USER="nextcloud" -d nextcloud:latest
Lastly add the nextcloud container to the internal network you created before.
additional note:
if you use next5cloud fpm you have to set additional environment variables:
environment:
[..]
VIRTUAL_ROOT: /var/www/html
VIRTUAL_PROTO: fastcgie
or set it up like in: https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/with-nginx-proxy/mariadb/fpm