{"id":16328365,"url":"https://github.com/cscart/development-docker","last_synced_at":"2026-01-21T04:31:07.756Z","repository":{"id":43119604,"uuid":"201057277","full_name":"cscart/development-docker","owner":"cscart","description":"CS-Cart development environment based on Docker containers","archived":false,"fork":false,"pushed_at":"2025-07-01T11:11:24.000Z","size":63,"stargazers_count":42,"open_issues_count":3,"forks_count":33,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-10-25T20:43:40.668Z","etag":null,"topics":["cs-cart","docker","environment"],"latest_commit_sha":null,"homepage":"https://www.cs-cart.com/marketplace-builder","language":"Dockerfile","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/cscart.png","metadata":{"files":{"readme":"README.rst","changelog":null,"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":"2019-08-07T13:34:50.000Z","updated_at":"2025-09-26T16:08:54.000Z","dependencies_parsed_at":"2024-02-14T10:26:11.996Z","dependency_job_id":"95cd41a3-9c9c-4d1d-a86c-2a14f8091efc","html_url":"https://github.com/cscart/development-docker","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/cscart/development-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cscart%2Fdevelopment-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cscart%2Fdevelopment-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cscart%2Fdevelopment-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cscart%2Fdevelopment-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cscart","download_url":"https://codeload.github.com/cscart/development-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cscart%2Fdevelopment-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28626215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cs-cart","docker","environment"],"created_at":"2024-10-10T23:14:16.823Z","updated_at":"2026-01-21T04:31:07.740Z","avatar_url":"https://github.com/cscart.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"*******************************\nCS-Cart Development Environment\n*******************************\n\n.. contents::\n   :local:\n\n==============\nEnglish manual\n==============\n\nDocker-based development environment:\n\n* PHP versions: 8.2, 8.1, 8.0 and 7.4.\n* MySQL 5.7 database server.\n* nginx web server.\n\n------------\nInstallation\n------------\n\n#. Install ``git``, ``docker`` and ``docker-compose``.\n#. Clone the environment repository:\n\n    .. code-block:: bash\n\n        $ git clone git@github.com:cscart/development-docker.git ~/srv\n        $ cd ~/srv\n\n#. Create the directory to store CS-Cart files:\n\n    .. code-block:: bash\n\n        $ mkdir -p app/www\n\n#. Clone CS-Cart repository or unpack the distribution archive into the ``app/www`` directory.\n#. Enable the default application config for nginx:\n\n    .. code-block:: bash\n\n        $ cp config/nginx/app.conf.example config/nginx/app.conf\n\n#. Run application containers:\n\n    .. code-block:: bash\n\n        $ make -f Makefile run\n\n----------------\nMySQL connection\n----------------\n        \n* DB host: mysql5.7.\n* User: root.\n* Password: root. \n\n\n-----------------------------------\nWorking with different PHP versions\n-----------------------------------\n\nPHP 7.4 is used by default.\n\nTo use the specific PHP version for your requests, add the following prefix to the domain you request:\n\n* ``php7.4.`` for PHP 7.4.\n* ``php8.0.`` for PHP 8.0.\n* ``php8.1.`` for PHP 8.1.\n* ``php8.2.`` for PHP 8.2.\n\n---------------\nSending e-mails\n---------------\n\nPHP containers do not send actual e-mails when using the ``mail()`` function.\n\nAll sent emails will be caught and stored in the ``app/log/sendmail`` directory.\n\n----------------------------------\nWorking with multiple applications\n----------------------------------\n\nSee comments in the ``config/nginx/app.conf.example`` file if you need to host multiple PHP applications inside single Docker PHP container.\n\n----------------------------------\nEnabling xDebug for PHP containers\n----------------------------------\n\nxDebug 3 is already configured for PHP7 and PHP8 containers. All you have to do is to uncomment the extension installation in the ``config/php*/Dockerfile`` files.\n\nYou can read about configuring PHPStorm to work with Docker and xDebug 3 in the `\"Debugging PHP\" \u003chttps://thecodingmachine.io/configuring-xdebug-phpstorm-docker\u003e`_ article.\n\n------------------------\nConfiguring the Docker subnet\n------------------------\n\nDocker-compose creates a subnet with addresses by default 172.18.[0-255].[0-255].\n\nIf you run docker locally with a default subnet, then resources using the same addresses will be unavailable - the response will be returned by the local subnet, not the required resource.\n\nTo fix the problem, you need to change the address of the docker subnet.\n\nIn the docker-compose file.bml shows an example of replacing addresses with 10.10.[0-255].[0-255].\n\nUncomment the lines in docker-compose.yml and run the following commands:\n\n    .. code-block:: bash\n\n        $ docker network rm $(docker network ls -q)\n        $ docker-compose down \u0026\u0026 docker-compose up -d\n\n==================\nРусская инструкция\n==================\n\nСреда для разработки на базе Docker:\n\n* Версии PHP: 8.2, 8.1, 8.0 и 7.4.\n* Сервер баз данных MySQL 5.7.\n* Веб-сервер nginx.\n\n---------\nУстановка\n---------\n\n#. Установите ``git``, ``docker`` and ``docker-compose``.\n#. Склонируйте репозиторий с окружением:\n\n    .. code-block:: bash\n\n        $ git clone git@github.com:cscart/development-docker.git ~/srv\n        $ cd ~/srv\n\n#. Создайте папку для файлов CS-Cart:\n\n    .. code-block:: bash\n\n        $ mkdir -p app/www\n\n#. Склонируйте репозиторий CS-Cart или распакуйте дистрибутив в папку ``app/www``.\n#. Включите приложение со стандартным конфигом nginx:\n\n    .. code-block:: bash\n\n        $ cp config/nginx/app.conf.example config/nginx/app.conf\n\n#. Запустите контейнеры приложения:\n\n    .. code-block:: bash\n\n        $ make -f Makefile run\n\n-------------------\nПодключение к MySQL\n-------------------\n        \n* Хост БД: mysql5.7.\n* Пользователь: root.\n* Пароль: root.\n\n-----------------------------\nРабота с разными версиями PHP\n-----------------------------\n\nПо умолчанию используется PHP 7.4.\n\nЧтобы явно указать версию PHP для конкретного запроса, добавьте к домену следующую приставку:\n\n* ``php7.4.`` для PHP 7.4.\n* ``php8.0.`` для PHP 8.0.\n* ``php8.1.`` для PHP 8.1.\n* ``php8.2.`` для PHP 8.2.\n\n------------------\nОтправка e-mail'ов\n------------------\n\nPHP по умолчанию не отправляют настоящих писем при вызове функции ``mail()``.\n\nВсе исходящие e-mail'ы перехватываются и пишутся в папку ``app/log/sendmail``.\n\n---------------------------------\nРабота с несколькими приложениями\n---------------------------------\n\nСм. комментарии в файле ``config/nginx/app.conf.example``.\n\n------------------------\nПоддержка xDebug для PHP\n------------------------\n\nxDebug уже настроен для использования в контейнерах с PHP7 и PHP8. Для его включения нужно раскомментировать установку модуля в ``config/php*/Dockerfile``.\n\nО настройке PHPStorm для работы с Docker и xDebug 3 можно прочитать в статье `\"PHP: Настраиваем отладку\" \u003chttps://handynotes.ru/2020/12/phpstorm-php-8-docker-xdebug-3.html\u003e`_.\n\n------------------------\nНастройка подсети докера\n------------------------\n\nDocker-compose по умолчанию создаёт подсеть с адресами 172.18.[0-255].[0-255]. \n\nЕсли локально запустить докер с дефолтной подсетью, то ресурсы, использующие такие же адреса, будут недоступны - ответ возвращать будет локальная подсеть, а не требуемый ресурс.\n\nЧтобы исправить проблему, нужно изменить адрес подсети докера. \n\nВ файле docker-compose.yml приведён пример замены адресов на 10.10.[0-255].[0-255].\n\nРаскомментируйте строки в docker-compose.yml и выполните следующие команды:\n\n    .. code-block:: bash\n\n        $ docker network rm $(docker network ls -q)\n        $ docker-compose down \u0026\u0026 docker-compose up -d\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcscart%2Fdevelopment-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcscart%2Fdevelopment-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcscart%2Fdevelopment-docker/lists"}