{"id":18131475,"url":"https://github.com/acceseo/php-webapp-docker-compose","last_synced_at":"2026-02-08T07:02:38.211Z","repository":{"id":260486613,"uuid":"880228468","full_name":"acceseo/PHP-WebApp-Docker-Compose","owner":"acceseo","description":"docker compose file for PHP webapps (Symfony/WordPress/PrestaShop)","archived":false,"fork":false,"pushed_at":"2025-01-30T15:41:26.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T16:36:11.661Z","etag":null,"topics":["docker","docker-compose","mariadb","php"],"latest_commit_sha":null,"homepage":"","language":null,"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/acceseo.png","metadata":{"files":{"readme":"README.en.md","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":"2024-10-29T11:00:34.000Z","updated_at":"2025-01-30T15:41:31.000Z","dependencies_parsed_at":"2025-01-30T16:40:04.956Z","dependency_job_id":null,"html_url":"https://github.com/acceseo/PHP-WebApp-Docker-Compose","commit_stats":null,"previous_names":["acceseo/php-webapp-docker-compose"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acceseo%2FPHP-WebApp-Docker-Compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acceseo%2FPHP-WebApp-Docker-Compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acceseo%2FPHP-WebApp-Docker-Compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acceseo%2FPHP-WebApp-Docker-Compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acceseo","download_url":"https://codeload.github.com/acceseo/PHP-WebApp-Docker-Compose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238552491,"owners_count":19491267,"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":["docker","docker-compose","mariadb","php"],"created_at":"2024-11-01T12:07:37.731Z","updated_at":"2025-10-27T20:30:40.571Z","avatar_url":"https://github.com/acceseo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://www.acceseo.com\"\u003e\n        \u003cimg alt=\"acceseo logo\" src=\"logo.svg\" width=\"150\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003ePHP WebApp Docker Compose\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"README.md\"\u003eSpanish version\u003c/a\u003e\n    \u003cbr\u003e\u003cbr\u003e\n\u003c/div\u003e\n\n\u003chr\u003e\n\n**Index**\n- [📖 Description](#-description)\n- [📚 Prerequisites](#-prerequisites)\n- [🔨 Getting started](#-getting-started)\n  - [🟢 Available services](#-available-services)\n- [🤖 Useful commands](#-useful-commands)\n  - [PHP](#php)\n  - [Node](#node)\n  - [MariaDB](#mariadb)\n- [🪄 Advanced config](#-advanced-config)\n  - [Xdebug config for Visual Studio Code](#xdebug-config-for-visual-studio-code)\n  - [Disable Xdebug](#how-to-disable-xdebug)\n  - [Symfony usage example](#-symfony-usage-example)\n- [:question: FAQs](#question-faqs)\n- [📄 License](#-license)\n- [👷 Credits](#-credits)\n\n## 📖 Description\nBasic configuration file for creating web applications (Symfony, WordPress, PrestaShop).\n\n## 📚 Prerequisites\n- [Docker](https://docs.docker.com/engine/install/)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n\n## 🔨 Getting started\n1. Download the config file `docker-compose.yml` in your project folder\n```shell\ncurl -O https://raw.githubusercontent.com/acceseo/PHP-WebApp-Docker-Compose/main/docker-compose.yml\n```\n2. Start the containers\n```shell\ndocker compose up -d\n```\n#### 🟢 Available services\n* Web server\n  * http://localhost (:80)\n  * https://localhost (:443)\n* Database\n  * localhost:3306\n* Mail server\n  * http://localhost:8025 (webmail interface)\n  * localhost:1025 (SMTP server)\n---\n\n## 🤖 Useful commands\n### PHP\n* **Install dependencies with composer**\n```shell\ndocker compose exec php.local composer require symfony/finder\n```\n* **Run a script**\n```shell\ndocker compose exec php.local script.php\n```\n* **Run wp-cli**\n```shell\ndocker compose exec php.local wp\n```\n\n### Node\n* **Run webpack**\n```shell\ndocker compose run --rm node.local node webpack\n```\n* **Install dependencies**\n```shell\ndocker compose run --rm node.local npm install\n```\n\n### MariaDB\n* **Import a database dump from the terminal**\n```shell\ndocker compose exec -T mariadb.local mysql -uroot -proot _database_ \u003c dump.sql\n```\n* **Generate a database dump from the terminal**\n```shell\ndocker compose exec -T mariadb.local mysqldump -uroot -proot app \u003e dump.sql\n```\n* **Create a database**\n```shell\ndocker compose exec -T mariadb.local mysql -uroot -proot -e \"CREATE DATABASE db\"\n```\n---\n\n## 🪄 Advanced config\n### Xdebug config for Visual Studio Code\nExecute the instructions in [acceseo/xdebug-config-for-vscode](https://github.com/acceseo/xdebug-config-for-vscode)\n### How to disable Xdebug\n* **CLI**\n```shell\ndocker compose exec -e XDEBUG_MODE=off php.local my-script.php\n```\n* **Web**\n```yaml\n  php.local:\n    image: acceseo/php-fpm:8.3\n    volumes:\n      - .:/app\n    environment:\n      - XDEBUG_MODE=off\n```\n---\n\n## 🚀 Symfony usage example\n```yaml\n...\nhttpd.local:\n    image: acceseo/httpd\n    environment:\n      - HTTPD_APP_DIRECTORY=/app/public\n...\n```\n---\n\n## :question: FAQs\n- **¿Why do we use `profiles` for the Node container?**\nTo avoid creating the Node container each time you run `docker compose up`.\n\n## 📄 License\nThis project is under the [MIT License](LICENSE).\n\n## 👷 Credits\n* Created by [acceseo](https://www.acceseo.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facceseo%2Fphp-webapp-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facceseo%2Fphp-webapp-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facceseo%2Fphp-webapp-docker-compose/lists"}