first commit

This commit is contained in:
2024-06-03 18:43:35 +02:00
parent 2da01a3f6e
commit f501d519af
883 changed files with 71550 additions and 2 deletions

1
dockers/cloud/.env Symbolic link
View File

@ -0,0 +1 @@
../../config/dockers.env

90
dockers/cloud/Readme.txt Normal file
View File

@ -0,0 +1,90 @@
Pour l'installation de Nextcloud
Documentation:
https://registry.hub.docker.com/_/nextcloud?tab=description
https://registry.hub.docker.com/_/mariadb?tab=description
https://blog.ssdnodes.com/blog/installing-nextcloud-docker/
____________________________________________________________
Contenu du répertoire
____________________________________________________________
Se placer dans le bon répertoire
# cd /docker/cloud
____________________________________________________________
Lancement de nextcloud et nextcloudDB
# docker-compose up -d
____________________________________________________________
Vérification
Il y a des containers qui tournent cloudServ cloudDB (collabraServ)
# docker ps
# docker exec -ti cloudServ bash
exit
# docker exec -ti cloudDB bash
exit
____________________________________________________________
Personalisation
Il faut attendre 2 minutes pour le lancement
Pour mettre en français
emacs /var/lib/docker/volumes/cloud_cloudConfig/_data/config.php
il faut ajouter :
"default_language" => "fr",
Création des comptes.
Application
* Tasks
* Calendar
* Desk
* Contact
* Mail
* Talk
* Draw.io
* Collabora Online - Built-in CODE Server (il faut un port d'écoute)
apt update
apt install sudo
sudo -u www-data php -d memory_limit=512M ./occ app:install richdocumentscode
sudo -u www-data php -d memory_limit=512M ./occ app:update --all
ou
installer un docker collabra et
apt update
apt install sudo
sudo -u www-data ./occ config:app:set --value http://89.234.186.106:9980/ richdocuments wopi_url
sudo -u www-data ./occ richdocuments:activate-config
https://cloud.kaz.bzh/settings/admin/richdocuments
____________________________________________________________
Mettre à jour le mot de passe dans /kaz/secret
____________________________________________________________
Test
Y a plus qu'a tester
http://kaz.bzh:8080
____________________________________________________________
Traces
https://cloud.kaz.bzh/index.php/settings/admin/logging
____________________________________________________________
Pour la sauvegarde il faut également des scripts
Didier le 11/12/2020
installation du module RainLoop pour les mails
mot passe de l' admin : voir dans /kaz/secret/SetAllPass.sh
le module a viré pas de custom_apps dans le docker-compose
proposition de modif du docker-compose.yml mis en commentaires.

View File

@ -0,0 +1,77 @@
version: '3.3'
services:
cloud:
image: nextcloud
container_name: ${nextcloudServName}
restart: ${restartPolicy}
depends_on:
- db
links:
- db
external_links:
- ${smtpServName}:${smtpHost}
# ports:
# - 8090:80
networks:
- cloudNet
- postfixNet
- ldapNet
volumes:
- cloudMain:/var/www/html
- cloudData:/var/www/html/data
- cloudConfig:/var/www/html/config
- cloudApps:/var/www/html/apps
- cloudCustomApps:/var/www/html/custom_apps
- cloudThemes:/var/www/html/themes/
- cloudPhp:/usr/local/etc/php/conf.d/
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
env_file:
- ../../secret/env-${nextcloudServName}
- ../../secret/env-${nextcloudDBName}
environment:
- NEXTCLOUD_TRUSTED_DOMAINS=${cloudHost}.${domain}
- SMTP_HOST=${smtpHost}
- SMTP_PORT=25
- MAIL_DOMAIN=${domain}
labels:
- "traefik.enable=true"
- "traefik.http.routers.${nextcloudServName}.rule=Host(`${cloudHost}.${domain}`)"
- "traefik.docker.network=cloudNet"
db:
image: mariadb:10.5
container_name: ${nextcloudDBName}
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: ${restartPolicy}
volumes:
- cloudDB:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
env_file:
- ../../secret/env-${nextcloudDBName}
networks:
- cloudNet
volumes:
cloudDB:
cloudMain:
cloudData:
cloudConfig:
cloudApps:
cloudCustomApps:
cloudThemes:
cloudPhp:
networks:
cloudNet:
external: true
name: cloudNet
postfixNet:
external: true
name: postfixNet
ldapNet:
external: true
name: ldapNet

10
dockers/cloud/first.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
KAZ_ROOT=$(cd $(dirname $0)/../..; pwd)
. "${KAZ_ROOT}/bin/.commonFunctions.sh"
setKazVars
. "${DOCKERS_ENV}"
. $KAZ_ROOT/secret/SetAllPass.sh
${KAZ_BIN_DIR}/gestContainers.sh --install -M -cloud

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

3
dockers/cloud/reindex.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker exec --user www-data -ti nextcloudServ bash -c "/var/www/html/occ db:add-missing-indices"