diff --git a/dolideb/config.yaml b/dolideb/config.yaml index 47488f1..1ef1f72 100644 --- a/dolideb/config.yaml +++ b/dolideb/config.yaml @@ -8,6 +8,8 @@ arch: url: https://dolibar.fr map: - share:rw +options: + documents: "/share/smaf/documents" image: docker.io/tuxgasy/dolibarr init: false ingress: true @@ -29,4 +31,8 @@ environment: PHP_INI_DATE_TIMEZONE: 'Europe/Paris' PHP_INI_SESSION_GC_MAXLIFETIME: '7200' PHP_INI_SESSION_COOKIE_LIFETIME: '7200' - DOLIBARR_MAIN_AUTH_TOKEN_TIMEOUT: '7200' \ No newline at end of file + DOLIBARR_MAIN_AUTH_TOKEN_TIMEOUT: '7200' + +# Define volume mappings +volumes: + - /share/smaf/documents:/var/www/documents \ No newline at end of file diff --git a/dolideb/rootfs/etc/services.d/dolideb/run b/dolideb/rootfs/etc/services.d/dolideb/run index 128b85c..93a5e78 100644 --- a/dolideb/rootfs/etc/services.d/dolideb/run +++ b/dolideb/rootfs/etc/services.d/dolideb/run @@ -1,15 +1,3 @@ #!/usr/bin/execlineb -P with-contenv - -# Ensure the /share/smaf/documents directory exists -mkdir -p /share/smaf/documents - -# Remove the existing /var/www/documents directory if it exists -if [ -d /var/www/documents ]; then - rm -rf /var/www/documents -fi - -# Create a symbolic link from /var/www/documents to /share/smaf/documents -ln -s /share/smaf/documents /var/www/documents - /usr/sbin/apachectl -D FOREGROUND \ No newline at end of file