PrestaShop / PrestaShop/docker
How to change the default installation path [/var/www/html] ?
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 281
- Forks
- 190
- PR merge metrics
- No merged PRs in 30d
Description
I use docker compose and prestashop PHP-FPM image, however we need a HTTP server.
But the default image httpd (apache), uses as default path : /usr/local/apache2/htdocs
Prestashop image is configured by default to : /var/www/html
Is it possible to modify this ?
I looked in the environment variables but I didn't find anything.
Here is my problem :
services:
apache:
image: httpd:2.4
restart: always
ports:
- 8080:80
volumes:
- ./:/usr/local/apache2/htdocs # volume not shared <------
- php-socket:/run/php
networks:
- front
...
here mariadb ...
...
php-fpm:
image: prestashop/prestashop:1.7.8.6-7.4-fpm
restart: always
ports:
- 9000:9000
volumes:
- ./:/var/www/html # volume not shared <------
- ./.docker/zz-docker.conf:/usr/local/etc/php-fpm.d/zz-docker.conf
- php-socket:/run/php
networks:
- front
volumes:
php-socket:
networks:
front:
But as there are two different paths, the volumes are not sharing and will return an error : File not found.
Do I have to modify the default HTTPD image Apache DocumentRoot (and create/var/www/html to copy files) ?
Or is there another solution ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Docker Compose example in the issue and compare the mounted paths /usr/local/apache2/htdocs and /var/www/html used by the Apache and PrestaShop PHP-FPM containers. Determine whether the project documents a supported way to align these paths or configure Apache's DocumentRoot; done means the documented setup shares the application files without the reported File not found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- apache, docker, docker-compose, php
- Domain
- devops, infrastructure
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100