Prestashop is a Free and Open Source E-Commerce platform written in PHP. It allows users to deploy their own shop. They have also a great addons marketplace to extend Prestashop functionalities.
To make some development, it can be useful to deploy the local environment. One way is to create a local Docker environment. Prestashop provides an official Docker image.
Here you can find a
docker-compose file with the Prestashop image and a MySQL database. The installation is automatically installed with a demo shop ready to play with.
version: "3" services: prestashop: image: prestashop/prestashop environment: - DB_SERVER=db - DB_NAME=prestashop - DB_USER=prestashop - DB_PASSWD=prestashop - PS_DEV_MODE=1 - PS_DEMO_MODE=1 - PS_INSTALL_AUTO=1 - PS_DOMAIN=localhost:8080 - PS_FOLDER_ADMIN=admin - [email protected] - ADMIN_PASSWD=prestashop_demo links: - db depends_on: - db ports: - 8080:80 networks: - prestashop-net healthcheck: test: [ "CMD", "curl", "-f", "http://localhost:8080" ] interval: 30s timeout: 10s retries: 5 db: image: mysql:5.7 command: --default-authentication-plugin=mysql_native_password environment: - MYSQL_ROOT_PASSWORD=admin - MYSQL_DATABASE=prestashop - MYSQL_USER=prestashop - MYSQL_PASSWORD=prestashop networks: - prestashop-net networks: prestashop-net:
Subscribe to the newsletter
Get emails from me about web development and a lot of topics related to tech.