A little docker-compose to setup a dockerized prestashop in no time.
The docker-compose will launch two containers, a mysql and the official prestashop docker image.
Two volumes are used to persist your installation:
www
: contains the prestashop source;db-data
: contains the mysql database files.
git clone [email protected]:derlin/prestashop-docker-compose.git
cd prestashop-docker-compose
docker-compose up -d
Then, go to http://localhost and follow the PrestaShop setup wizard.
To stop it, use:
docker-compose down
Data will be persisted between ups/downs thanks to the two volumes.
- To change the port of the prestashop, see the prestashop > ports section in
docker-compose.yaml
; - To ssh into the prestashop container, use
docker exec -it prestashop_www_1 bash
. For mysql, replaceprestashop_www_1
byprestashop_db_1
;