Last active
April 25, 2019 13:55
-
-
Save Hotfirenet/02643fa5963aab691b3965ac7ce61045 to your computer and use it in GitHub Desktop.
Permet de monter un prestashop sous docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a network for containers to communicate | |
docker network create prestashop-net | |
# launch latest mysql container | |
docker run -ti --name prestashop-mysql --network prestashop-net -e MYSQL_ROOT_PASSWORD=admin -p 3306:3306 -d mysql:latest | |
# launch prestashop container | |
sudo docker run -ti --name my-prestashop --network prestashop-net -e DB_SERVER=prestashop-mysql -e PS_DOMAIN=maboutique.local -e PS_SHOP_URL=maboutique.local --volume /var/www/html/prestashop:/var/www/html -p 80:80 -d prestashop/prestashop:1.6 | |
# Run mailcatcher | |
sudo docker run -d --name prestashop-mailcatcher --network prestashop-net -p 1080:1080 schickling/mailcatcher |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment