...

/

Solution to Challenge: Run PrestaShop

Solution to Challenge: Run PrestaShop

Know the solution to the challenge you completed.

We'll cover the following...

Solution

The docker-compose.yml shown below runs PrestaShop. Click on the “Run” button and then the URL in front of “Your app can be found at:” to view it:

version: '3'

services:

  prestashop:
    image: prestashop/prestashop
    container_name: prestashop    
    environment:
      DB_SERVER: mysql
    ports:
      - "8080:80"
    restart: always
    networks:
      - prestashop-net

  mysql:
    image: mysql:5.7
    container_name: mysql
    environment:
      MYSQL_ROOT_PASSWORD: admin
    restart: always
    ports:
      - "3000:3306"
    networks:
      - prestashop-net

networks:
  prestashop-net:
Running PrestaShop

Explanation

The details of ...