image nextcloud

This commit is contained in:
afornerot 2023-11-06 17:12:18 +01:00
parent ec2d60f56e
commit bf09b8540b
5 changed files with 18 additions and 2 deletions

View File

@ -7,4 +7,5 @@ MYSQL_USER=${MARIADB_USER}
MYSQL_PASSWORD=${MARIADB_PASSWORD}
NEXTCLOUD_ADMIN_USER=${ADMIN_USER}
NEXTCLOUD_ADMIN_PASSWORD=${ADMIN_PASSWORD}
NEXTCLOUD_ALIAS=/

View File

@ -0,0 +1,4 @@
FROM docker.io/library/nextcloud
COPY apache.conf /etc/apache2/sites-available/nextcloud.conf
RUN a2ensite nextcoud

View File

@ -0,0 +1 @@
Alias /nextcloud /var/www/html

View File

@ -0,0 +1,8 @@
version: '3'
services:
nextcloud:
build:
context: ./containers/nextcloud
image: reg.cadoles.com/envole/nextcloud
container_name: nextcloud

View File

@ -11,8 +11,10 @@ run_as() {
echo
echo "== INSTALLATION APP NEXTCLOUD ================================================"
echo "==TRUSTED DOMAINE"
echo "== CONFIG"
run_as 'php occ config:system:set trusted_domains 1 --value '${WEB_URL}
run_as 'php occ config:system:set overwrite.cli.url --value '${NEXTCLOUD_URL}
#run_as 'php occ config:system:set htaccess.RewriteBase --value '${NEXTCLOUD_ALIAS}
echo
echo "== CALENDAR"
@ -56,7 +58,7 @@ run_as 'php occ app:install files_mindmap'
run_as 'php occ app:update files_mindmap'
run_as 'php occ app:enable files_mindmap'
if [[ "${MODE_AUTH}" == "CAS" && "CAS_ACTIVATE" == "1" ]]
if [[ "${MODE_AUTH}" == "CAS" && "${CAS_ACTIVATE}" == "1" ]]
then
echo
echo "== USER CAS"