Skip to content

Instantly share code, notes, and snippets.

@Hotfirenet
Last active April 25, 2019 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hotfirenet/02643fa5963aab691b3965ac7ce61045 to your computer and use it in GitHub Desktop.
Save Hotfirenet/02643fa5963aab691b3965ac7ce61045 to your computer and use it in GitHub Desktop.
Permet de monter un prestashop sous docker
# 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