All Projects → PrestaShop → Docker

PrestaShop / Docker

Licence: mit
🐳

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Docker

Circe
Yet another JSON library for Scala
Stars: ✭ 2,223 (+1114.75%)
Mutual labels:  hacktoberfest
Wpstarter
Easily bootstrap whole site Composer packages for WordPress.
Stars: ✭ 182 (-0.55%)
Mutual labels:  hacktoberfest
Tox
Command line driven CI frontend and development task automation tool.
Stars: ✭ 2,523 (+1278.69%)
Mutual labels:  hacktoberfest
Javascript Biginteger
A big integer library for JavaScript
Stars: ✭ 181 (-1.09%)
Mutual labels:  hacktoberfest
Github Csv Tools
Import and export GitHub issues via CSV
Stars: ✭ 182 (-0.55%)
Mutual labels:  hacktoberfest
Slurp
Evaluate the security of S3 buckets
Stars: ✭ 183 (+0%)
Mutual labels:  hacktoberfest
Fluentassertions
A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, .NET Core 2.1 and 3.0, as well as .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.
Stars: ✭ 2,449 (+1238.25%)
Mutual labels:  hacktoberfest
Terraform Provider Sentry
Terraform provider for Sentry
Stars: ✭ 183 (+0%)
Mutual labels:  hacktoberfest
Git S3 Push
Deploy your git repo to an S3 bucket
Stars: ✭ 182 (-0.55%)
Mutual labels:  hacktoberfest
Bastion
Highly-available Distributed Fault-tolerant Runtime
Stars: ✭ 2,333 (+1174.86%)
Mutual labels:  hacktoberfest
Zoo For Zotero
This is an Android app for viewing Zotero libraries.
Stars: ✭ 181 (-1.09%)
Mutual labels:  hacktoberfest
Hacktoberfest Data Structure And Algorithms
A repo to contains data structure s and algorithms, regardless of language.
Stars: ✭ 182 (-0.55%)
Mutual labels:  hacktoberfest
Goplaxt
Scrobble Plex plays to Trakt with ease!
Stars: ✭ 183 (+0%)
Mutual labels:  hacktoberfest
Python Neo
Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats
Stars: ✭ 180 (-1.64%)
Mutual labels:  hacktoberfest
Comunica
📬 A knowledge graph querying framework for JavaScript
Stars: ✭ 183 (+0%)
Mutual labels:  hacktoberfest
Skiasharp
SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
Stars: ✭ 2,493 (+1262.3%)
Mutual labels:  hacktoberfest
Cargo Spellcheck
Checks all your documentation for spelling and grammar mistakes with hunspell and a nlprule based checker for grammar
Stars: ✭ 183 (+0%)
Mutual labels:  hacktoberfest
Px4 Sitl gazebo
Set of plugins, models and worlds to use with OSRF Gazebo Simulator in SITL and HITL.
Stars: ✭ 182 (-0.55%)
Mutual labels:  hacktoberfest
Discord Bot Dashboard
📊 A tool for Discord.js Bot Developers to get detailed analytics of their bots and to manage them.
Stars: ✭ 182 (-0.55%)
Mutual labels:  hacktoberfest
Front End Performance Checklist
🎮 더 빠르게 작동하는 프론트엔드 성능 체크리스트
Stars: ✭ 183 (+0%)
Mutual labels:  hacktoberfest

PrestaShop on Docker

Tests Codestyle

Supported tags

Images by PrestaShop version

  • 1.7, latest, 1.7-apache
  • 1.7-fpm
  • nightly (Latest but unstable release from git)

You can use tags for this. For example:

$ docker run -ti --name my-docker-name -e PS_DEV_MODE=false -e PS_INSTALL_AUTO=0 -p 8080:80 -d prestashop/prestashop:1.7

What is PrestaShop

PrestaShop is a free and open-source e-commerce web application, committed to providing the best shopping cart experience for both merchants and customers. It is written in PHP, is highly customizable, supports all the major payment services, is translated in many languages and localized for many countries, has a fully responsive design (both front and back office), etc. See all the available features.

www.prestashop.com

PrestaShop's back office dashboard

How to run these images

These images are running with the latest version in the official PHP repository. For the database, you can use and link any SQL server related to MySQL.

Currently if you do not have any MySQL server, the most simple way to run this container is:

# create a network for containers to communicate
$ docker network create prestashop-net
# launch mysql 5.7 container
$ docker run -ti --name some-mysql --network prestashop-net -e MYSQL_ROOT_PASSWORD=admin -p 3307:3306 -d mysql:5.7
# launch prestashop container
$ docker run -ti --name some-prestashop --network prestashop-net -e DB_SERVER=some-mysql -p 8080:80 -d prestashop/prestashop:latest

A new shop will be built, ready to be installed.

You can then use the shop by reaching http://localhost:8080.

The MySQL server can be reached:

  • from the host using port 3307 (example: $ mysql -uroot -padmin -h localhost --port 3307)
  • from a container in the network using the URL some-mysql.

For example, when you reach the "database configuration" install step, the installer will ask for the "server database address": input some-mysql.


However, if you want to customize the container execution, here are many available options:

  • PS_DEV_MODE: The constant _PS_MODE_DEV_ will be set at true (default value: 0)
  • PS_HOST_MODE: The constant _PS_HOST_MODE_ will be set at true. Useful to simulate a PrestaShop Cloud environment. (default value: 0)
  • PS_DEMO_MODE: The constant _PS_DEMO_MODE_ will be set at true. Use it to create a demonstration shop. (default value: 0)
  • DB_SERVER: If set, the external MySQL database will be used instead of the volatile internal one (default value: localhost)
  • DB_USER: Override default MySQL user (default value: root)
  • DB_PASSWD: Override default MySQL password (default value: admin)
  • DB_PREFIX: Override default tables prefix (default value: ps_)
  • DB_NAME: Override default database name (default value: prestashop)
  • PS_INSTALL_AUTO=1: The installation will be executed. Useful to initialize your image faster. In some configurations, you may need to set PS_DOMAIN or PS_HANDLE_DYNAMIC_DOMAIN as well. (Please note that PrestaShop can be installed automatically from PS 1.5)
  • PS_ERASE_DB: Drop the mysql database. All previous mysql data will be lost (default value: 0)
  • PS_INSTALL_DB: Create the mysql database. (default value: 0)
  • PS_DOMAIN: When installing automatically your shop, you can tell the shop how it will be reached. For advanced users only (no default value)
  • PS_LANGUAGE: Change the default language installed with PrestaShop (default value: en)
  • PS_COUNTRY: Change the default country installed with PrestaShop (default value: GB)
  • PS_ALL_LANGUAGES: Install all the existing languages for the current version. (default value: 0)
  • PS_FOLDER_ADMIN: Change the name of the admin folder (default value: admin. But will be automatically changed later)
  • PS_FOLDER_INSTALL: Change the name of the install folder (default value: install. But must be changed anyway later)
  • PS_ENABLE_SSL: Enable SSL at PrestaShop installation. (default value: 0)

By default, we use the employee existing on the PrestaShop demo. But you can change it with the following parameters:

  • ADMIN_MAIL: Override default admin email (default value: [email protected])
  • ADMIN_PASSWD: Override default admin password (default value: prestashop_demo)

If your IP / port (or domain) change between two executions of your container, you will need to modify this option:

  • PS_HANDLE_DYNAMIC_DOMAIN: Add specific configuration to handle dynamic domain (default value: 0)

Documentation

The user documentation (in English by default) is available here.

The developer documentation (English only) can be found here.

Troubleshooting

Prestashop cannot be reached from the host browser

When using Docker for Mac or Docker for Windows (throught WSL), Prestashop cannot be reached from the host browser (gets redirected to "dockeripaddress:8080")

Docker for Mac has an issue with bridging networking and consequently cannot reach the container on its internal IP address. After installation, the browser on the host machine will be redirected from http://localhost:8080 to http://<internal_prestashop_container_ip>:8080 which fails.

You need to set the PS_DOMAIN variable to localhost:8080 for it to work correctly when browsing from the host computer. The command looks something like this:

$ docker run -ti --name some-prestashop --network prestashop-net -e DB_SERVER=some-mysql -e PS_DOMAIN=localhost:8080 -p 8080:80 -d prestashop/prestashop

Cannot connect to mysql from host - authentication plugin cannot be loaded

ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: ...

If your mysql image uses MySQL 8, the authentication plugin changed from mysql_native_password to caching_sha2_password. You can bypass this by forcing the old authentication plugin:

$ docker run -ti -p 3307:3306 --network prestashop-net --name some-mysql -e MYSQL_ROOT_PASSWORD=admin -d mysql --default-authentication-plugin=mysql_native_password

Cannot connect to mysql from host - cannot use socket

ERROR 1045 (28000): Access denied for user '...'@'...' (using password: YES)

For some usecases, you might need to force using TCP instead of sockets:

$ mysql -u root -padmin -h localhost --port 3307 --protocol=tcp

During the installation, prestashop cannot connect to mysql - bad charset

Server sent charset (255) unknown to the client. Please, report to the developers

MySQL 8 changed the default charset to utfmb4. But some clients do not know this charset. This requires to modify the mysql configuration file.

If you are using a mysql container, you need to :

  • modify mysql configuration file /etc/mysql/my/cnf and add:
[client]
default-character-set=utf8

[mysql]
default-character-set=utf8


[mysqld]
collation-server = utf8_unicode_ci
character-set-server = utf8
  • restart mysql container

How to use the builder script

For more information, read HOW-TO-USE.md file

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].