brain initiation
This commit is contained in:
51
20230417112410-nextcloud.org
Normal file
51
20230417112410-nextcloud.org
Normal file
@@ -0,0 +1,51 @@
|
||||
:PROPERTIES:
|
||||
:ID: 7c74176b-a637-4d3b-838e-05fae7ad3789
|
||||
:END:
|
||||
#+title: 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 [[id:f2b1d5af-1a7d-47a5-95c8-4a85d558419e][server]] ([[id:80a4104e-af18-4d90-a45e-2c92b51e8c0c][w10]]).
|
||||
|
||||
* configdatein
|
||||
** [[~/.config/docker/docker-compose.yml][compose config]]
|
||||
** [[~/nextcloud/config/config.php][config.php]]
|
||||
|
||||
#+begin_src bash
|
||||
docker network create "<network_name>"
|
||||
#+end_src
|
||||
After the creation is successful, add the Databas container to the network.
|
||||
#+begin_src bash
|
||||
docker network attach "<network_name>" "<container_name>"
|
||||
#+end_src
|
||||
If you want to see if the container is added successfully, use the command
|
||||
#+begin_src bash
|
||||
docker network inspect "<network_name>"
|
||||
#+end_src
|
||||
and look for the added container.
|
||||
Ad this point, the reverse proxy container should already be running. The manual entry for the reverse proxy [[id:0b50e19a-0608-434c-a57c-fd719e3bb8bf][nginx]] shows how it is setup to accept proxy input.
|
||||
In the next step create the nextcloud container as shown below ([[id:673d1cb1-536b-42f1-a046-40a8937c4283][root]] access needed ([[id:dc54334e-afa9-4a53-be91-1e90bc6bf8d0][sudo]]):
|
||||
#+begin_src bash
|
||||
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
|
||||
#+end_src
|
||||
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:
|
||||
#+begin_src bash
|
||||
environment:
|
||||
[..]
|
||||
VIRTUAL_ROOT: /var/www/html
|
||||
VIRTUAL_PROTO: fastcgie
|
||||
#+end_src
|
||||
or set it up like in: https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/with-nginx-proxy/mariadb/fpm
|
||||
|
||||
|
||||
|
||||
* [[id:3bd6dae2-5fbb-4045-80c0-4dbed0f02df1][nextcloud-docker-container]]
|
||||
Reference in New Issue
Block a user