August 17, 20241 yr Hello, we have a selfmade small crm which is running on a hosting-provider. For better and faster testing and devlopment, I tried to setup a php-apache server with same conditions as the live-server has. This worked with one exception: version: "'2'" services: ApachePHP839: image: php:8.3.9-apache container_name: ApachePHP_8.3.10 build: context: . dockerfile: Dockerfile volumes: - /sharedFolderName/ProjectName/VersionName/public:/var/www/html ports: - 8945:80 environment: USER_UID: 1026 USER_GID: 100 networks: - mariadb_net networks: mariadb_net: name: mariadb_mariadb_net external: true CRM Website folder Structure: ProjectName Uploads VersionName libs configs public //EntryPoint "DocumentRoot" etc.. On our webhosting-server, I can create the same Structure and tell the ConrolPanel what domain points to the DocumentRoot directory ( .../ProjectName/VersionName/public ) and I still have access to the folders before public. Because of linking folder VersionName/public to www/html I dont have access to the folders in ProjectName/VersionName or ProjectName/Uploads. I understand that the folders before public not exists for the image because www is the root folder of /public because of linking. But i dont understand how to change this. Not even sure what keywords I'm looking for. Goal is: Pointing DocumentRoot to /public but be able to access the folders before /public. I tried to link /ProjectName/VersionName to /var/www This works somehow. But I'm looking for the right way to do it. Maybe someone can give a hint what keywords to search or have a idea/solution for making this work. Thanks a lot
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.