Sign inSign up

prestashop/prestashop-flashlight

By prestashop

•Updated 12 minutes ago

Spin a Prestashop testing instance in seconds!

Image
6

100K+

prestashop/prestashop-flashlight repository overview

PrestaShop Flashlight logo

Spin a Prestashop testing instance in seconds!

⚠️ Disclaimer: the following tool is provided in the sole purpose of bootstraping a PrestaShop testing environment.
If you look for a production grade image, please refer to prestashop/prestashop⁠.

Note: no MySQL server is shipped in the resulting image, you have to provide your own instance for the backup to be dumped during the first connection.

⁠Quick start with Docker

If you already have a database with default variables (see below)

docker run -it -p 8000:80 -e PS_DOMAIN=localhost:8000 --network host prestashop/prestashop-flashlight:latest

⁠Quick start with docker-compose

version: "3"

services:
  prestashop:
    image: prestashop/prestashop-flashlight:latest
    depends_on:
      - mysql
    environment:
      - PS_DOMAIN=localhost:8000
    ports:
      - "8000:80"

  mysql:
    image: mariadb:lts
    environment:
      - TZ=UTC
      - MYSQL_USER=prestashop
      - MYSQL_PASSWORD=prestashop
      - MYSQL_ROOT_PASSWORD=prestashop
      - MYSQL_DATABASE=prestashop
    ports:
      - "3306:3306"

will run PrestaShop interface on localhost:8000 and connect to mysql on localhost:3306 without password.

If you want a more advanced docker compose⁠

⁠Container environment variables
  • PS_DOMAIN
    • Description: the public domain (and port) to reach your PrestaShop instance
    • Mandatory if you do not use NGROK_TUNNEL_AUTO_DETECT
    • Example: localhost:8000
  • NGROK_TUNNEL_AUTO_DETECT
    • Description: the ngrok agent base API url, to guess the tunnel domain of your shop
    • Mandatory if you do not use PS_DOMAIN
    • Example: http://ngrok:4040
  • SSL_REDIRECT
    • If set to true PrestaShop will be told to redirect all inbound traffic to https://$PS_DOMAIN
    • Default to false (or automatically guessed if using NGROK_TUNNEL_AUTO_DETECT)
  • DEBUG_MODE
    • If set to true the Debug mode will be enabled on PrestaShop
    • Default to false
  • INSTALL_MODULES_DIR
    • A module directory containing zips to be installed with the PrestaShop CLI
    • Example: /ps-modules
  • INIT_ON_RESTART
    • If set to true the PS_DOMAIN auto search and dump fix will be replayed on container restart
    • Default to false
  • DUMP_ON_RESTART
    • If set to true the dump restoration replayed on container restart
    • Default to false
  • INSTALL_MODULES_ON_RESTART
    • If set to true zip modules will be reinstalled on container restart
    • Default to false
  • INIT_SCRIPTS_ON_RESTART
    • If set to true custom init scripts will be replayed on container restart
    • Default to false
  • ON_INIT_SCRIPT_FAILURE
    • If set to continue, PrestaShop Flashlight will continue the boot process even if an init script failed
    • Default to fail

More information on PrestaShop/prestashop-flashlight⁠

Tag summary

Content type

Image

Digest

sha256:7a714f259…

Size

304.7 MB

Last updated

4 days ago

docker pull prestashop/prestashop-flashlight