Solution to Challenge: Run PrestaShop
Explore how to run PrestaShop by configuring docker-compose.yml. Understand how to set up services, map ports, assign environment variables, and manage networks to deploy PrestaShop with Docker efficiently.
We'll cover the following...
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 ...