This is more of a pet project I develop as I learn Docker. It is in no way a production ready setup, but a simple way to fire up a clean PrestaShop installation.
- Inside
entrypoint.sh
setPS_VERSION
andSITE_NAME
variables - Build the image by running
docker build -t="docker-prestashop" .
- Run the container with
docker run -d -p 80:80 -p 3306:3306 -v $(pwd):/var/www/html docker-prestashop --name "prestashop-dev"
- Visit the url defined in
SITE_NAME
- You can optionally pass the flag
--no_install
at the end of thedocker run
to avoid installing a fresh instance of Prestashop. Just move your files into the /prestashop folder and import your database
- Linux Ubuntu 16.04
- Apache 2.4.18
- MySQL 5.7
- PHP 7
- Use docker compose
- Set correct permissions on PS folders (list here)