- Create a .env file (use .env.dist as starter file,
cp .env.dist .env) and setup values. - Run
docker compose up [-d]. - Wait for download and build images.
- Wait for install a fresh Prestashop instance.
- Goto PS_DOMAIN:PRESTASHOP_PORT domain and play with your new shop.
PRESTASHOP_HOST allow to change a host on which nginx services is
listening. Default it's 127.0.0.1 so only you can connect from your local
machine to the shop. Setup 0.0.0.0 to allow others from the same network to
connect to your shop (for example to test shop on your mobile).
Other environments are described here.
If you want to debug a shop with xdebug:
- be sure you're running dev environment (and images),
- run
bin/xdebugto toggle xdebug mode.
Now you're ready to remote debugging.