This commit is contained in:
ai-dev 2024-09-02 23:33:04 +02:00
parent 2601deae8b
commit d68f7d9948
2 changed files with 7 additions and 13 deletions

View File

@ -8,6 +8,8 @@ arch:
url: https://dolibar.fr url: https://dolibar.fr
map: map:
- share:rw - share:rw
options:
documents: "/share/smaf/documents"
image: docker.io/tuxgasy/dolibarr image: docker.io/tuxgasy/dolibarr
init: false init: false
ingress: true ingress: true
@ -29,4 +31,8 @@ environment:
PHP_INI_DATE_TIMEZONE: 'Europe/Paris' PHP_INI_DATE_TIMEZONE: 'Europe/Paris'
PHP_INI_SESSION_GC_MAXLIFETIME: '7200' PHP_INI_SESSION_GC_MAXLIFETIME: '7200'
PHP_INI_SESSION_COOKIE_LIFETIME: '7200' PHP_INI_SESSION_COOKIE_LIFETIME: '7200'
DOLIBARR_MAIN_AUTH_TOKEN_TIMEOUT: '7200' DOLIBARR_MAIN_AUTH_TOKEN_TIMEOUT: '7200'
# Define volume mappings
volumes:
- /share/smaf/documents:/var/www/documents

View File

@ -1,15 +1,3 @@
#!/usr/bin/execlineb -P #!/usr/bin/execlineb -P
with-contenv 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 /usr/sbin/apachectl -D FOREGROUND