{"id":15145640,"url":"https://github.com/presta-expert/dev-environment","last_synced_at":"2026-01-18T02:52:15.626Z","repository":{"id":72079905,"uuid":"593803221","full_name":"presta-expert/dev-environment","owner":"presta-expert","description":"Script which with the help of docker will quickly create a ready dev environment for any version of PrestaShop.","archived":false,"fork":false,"pushed_at":"2023-05-30T19:33:45.000Z","size":10,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T17:13:55.891Z","etag":null,"topics":["bash","dev","docker","docker-compose","dockerfile","env","environment","prestashop"],"latest_commit_sha":null,"homepage":"https://presta.expert","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/presta-expert.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-26T21:45:06.000Z","updated_at":"2023-04-24T09:41:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"588ef07a-f4e6-4421-9a3a-e61ff4670562","html_url":"https://github.com/presta-expert/dev-environment","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presta-expert%2Fdev-environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presta-expert%2Fdev-environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presta-expert%2Fdev-environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presta-expert%2Fdev-environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/presta-expert","download_url":"https://codeload.github.com/presta-expert/dev-environment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128742,"owners_count":20888234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","dev","docker","docker-compose","dockerfile","env","environment","prestashop"],"created_at":"2024-09-26T11:41:27.897Z","updated_at":"2026-01-18T02:52:15.592Z","avatar_url":"https://github.com/presta-expert.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\nBash script which with the help of docker will quickly create a ready dev environment for any version of PrestaShop.\n\nBundled with MariaDB, phpMyAdmin, MailHog and IonCube, along with a support for your own entries in php.ini.\n\n## Usage\n\nJust clone the repository\n\n```bash\ngit clone https://github.com/presta-expert/dev-environment \u0026\u0026 cd dev-environment\n```\n\nThen just run bundled bash script [./bin/dev.sh](./bin/dev.sh) specifying the version of PrestaShop which you want to use\n```bash\nbin/dev.sh [up/down/start/stop/pause/build] prestashop_version\n\nbin/dev.sh up 1.7.8.8\n```\n_NOTE: You may be asked for the sudo password to set permissions, please provide it or run the script with sudo and **NEVER** use it in production._\n\nAfter a few moments your PrestaShop is installed and running at [http://localhost:8080](http://localhost:8080) _(BO: [http://localhost:8080/admin-dev](http://localhost:8080/admin-dev))_, your dev environment also includes:\n- **[phpMyAdmin](https://github.com/phpmyadmin/phpmyadmin)** _(for database management)_ which is accessible from [http://localhost:3309](http://localhost:3309)\n- **[MailHog](https://github.com/mailhog/MailHog)** and **[mhsendmail](https://github.com/mailhog/mhsendmail)** _(for local e-mail testing based on SMTP)_ which is accessible from [http://localhost:8025](http://localhost:8025)\n- **[IonCube Loader](https://www.ioncube.com/loaders.php)** _(for loading secured php files, it is pretty popular practice in PrestaShop modules)._\n\nTo check current PrestaShop installation progress run `docker logs [your container hash for PrestaShop]` *(hash can be found manually using `docker ps` command)*.\n\nYour PrestaShop will be built in the [./builds](./builds) directory under the name _./builds/prestashop\\_{SPECIFIED_VERSION}_ for example _./builds/prestashop_1.7.8.8_\n\n## Environment variables\n\nSometimes you may need to adjust some additional environment parameters, you can do it by modifying **.env** file inside your built PrestaShop _(i.e. ./builds/prestashop_1.7.8.8/.env)_ and rebuilding the environment using i.e. `bin/dev.sh up 1.7.8.8`\n\n| **Argument**         | **Description**                 | **Default**             |\n|----------------------|---------------------------------|-------------------------|\n| _PRESTASHOP_VERSION_ | PrestaShop version to use       | _1.7.8.8_               |\n| _MARIADB_VERSION_    | MariaDB version to use          | _10.6_                  |\n| _PHPMYADMIN_VERSION_ | phpMyAdmin version to use       | _5.2_                   |\n| _MAILHOG_VERSION_    | MailHog version to use          | _1.0.1_                 |\n| _DB_SERVER_          | MariaDB hostname                | _mysql_                 |\n| _DB_USER_            | MariaDB username                | _prestashop_            |\n| _DB_PASSWD_          | MariaDB username password       | _prestashop_            |\n| _DB_NAME_            | MariaDB database name           | _prestashop_            |\n| _PS_INSTALL_AUTO_    | PrestaShop auto installation    | _1_                     |\n| _PS_FOLDER_INSTALL_  | PrestaShop install directory    | _install-dev_           |\n| _PS_FOLDER_ADMIN_    | PrestaShop admin directory      | _admin-dev_             |\n| _PS_DOMAIN_          | PrestaShop domain               | _localhost:8080_        |\n| _PS_COUNTRY_         | PrestaShop default country      | _pl_                    |\n| _PS_LANGUAGE_        | PrestaShop default language     | _pl_                    |\n| _PS_DEV_MODE_        | PrestaShop dev mode             | _0_                     |\n| _PS_ADMIN_MAIL_      | PrestaShop administrator e-mail | _support@presta.expert_ |\n| _PS_ADMIN_PASSWD_    | PrestaShop administrator e-mail | _presta.expert_         |\n\n## Supported versions / tags\n\nYou can use any tag from the official PrestaShop Docker Hub [https://hub.docker.com/r/prestashop/prestashop/tags](https://hub.docker.com/r/prestashop/prestashop/tags), similarly you can specify custom tag for:\n- MariaDB - [https://hub.docker.com/_/mariadb/tags](https://hub.docker.com/_/mariadb/tags)\n- phpMyAdmin - [https://hub.docker.com/_/phpmyadmin/tags](https://hub.docker.com/_/phpmyadmin/tags)\n- MailHog - [https://hub.docker.com/r/mailhog/mailhog/tags](https://hub.docker.com/r/mailhog/mailhog/tags)\n\n### Examples\n```bash\nbin/dev.sh up 1.6.1.8\nbin/dev.sh up 1.5.6.3\nbin/dev.sh up 8.0.0-7.4-apache\n```\n\nYou can also change version of the other services by modifying **.env** file inside your already built PrestaShop _(i.e. ./builds/prestashop_1.7.8.8/.env):_\n```dotenv\n# Custom phpmyadmin and mailhog versions\nPHPMYADMIN_VERSION=5.1\nMAILHOG_VERSION=1.0.0\n```\n_NOTE: We do not recommend downgrading the MariaDB version due to possible compatibility issues with database files previously created (db-data volume). If you absolutely need a different version of MariaDB set it manually in [./src/.env](./src/.env) before building PrestaShop._\n\nDon't forget to rebuild your environment after above change using i.e. `bin/dev.sh up 1.7.8.8`\n\n## Custom php.ini entries\nOur dev environment also includes support for creating and overwriting entries from **php.ini**.\n\nTo set your own entries just edit the **php.ini** file in the _.docker/config_ directory inside your built PrestaShop _(i.e. ./builds/prestashop_1.7.8.8/.docker/config/php.ini)_ and rebuild the environment using i.e. `bin/dev.sh build 1.7.8.8 \u0026\u0026 bin/dev.sh up 1.7.8.8`\n\nSeveral entries are already automatically added to each build:\n```ini\n; Come on... we are parsing a lot of data sometimes\nmax_execution_time = 0\nmemory_limit = 256M\n\n; Modules or themes can be pretty big sometimes\nupload_max_filesize = 128M\npost_max_size = 128M\n\n; Translation feature in older versions of PrestaShop can exceed default limit\nmax_input_vars = 10000\n\n; Make MailHog work by default with PrestaShop\nsendmail_path = /usr/local/bin/mhsendmail\n```\n\n## Authors\n\n- [Presta.Expert](https://presta.expert) Team\n\n## License\n\nThe files in this archive are released under the [MIT LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpresta-expert%2Fdev-environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpresta-expert%2Fdev-environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpresta-expert%2Fdev-environment/lists"}