update
This commit is contained in:
		@@ -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
 | 
			
		||||
@@ -30,3 +32,7 @@ environment:
 | 
			
		||||
  PHP_INI_SESSION_GC_MAXLIFETIME: '7200'
 | 
			
		||||
  PHP_INI_SESSION_COOKIE_LIFETIME: '7200'
 | 
			
		||||
  DOLIBARR_MAIN_AUTH_TOKEN_TIMEOUT: '7200'
 | 
			
		||||
 | 
			
		||||
# Define volume mappings
 | 
			
		||||
volumes:
 | 
			
		||||
  - /share/smaf/documents:/var/www/documents
 | 
			
		||||
@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user