Skip to content

awesoft/magento-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento2 Docker

A lightweight, open-source Docker container for Magento2, tailored for a standard setup.

Magento Version Support License

Disclaimer

  • This container provides a minimal setup using alpine Linux and the sh shell, rather than bash.
  • It is designed for Magento Open Source projects and might conflict with Magento ECE Tools, which also offers Docker Compose files.

Requirements

  • Installed magento2-base (or an existing Magento2 project)
  • PHP version 8.2

Installation

  • Via Composer
    composer require awesoft/magento-docker:^8.2
    

Usage

  • The setup is designed to be straightforward. Additional configurations are optional and based on your specific needs.
  • After installation via Composer, simply run docker compose up to start all necessary services automatically. Refer to docker-compose.yml for details.

Files Created

  • docker-compose.yml - Specifies the services, volumes, and configurations to initiate your Magento2 instance.
  • .docker/mariadb - Includes configuration files for a MariaDB database instance.
  • .docker/nginx - Contains the Nginx server template configuration.

Access & Services

Additional Command and Configuration

  • Use the run-install command to execute setup:install with default options, ideal for a fresh Magento project.
    docker compose exec -it php run-install
    
  • If successful, you can access the admin page with the following credentials:
  • By default, the xdebug module is disabled. To enable it, add a XDEBUG_MODE environment variable in your docker-compose.yml file.

About

Magento 2 docker image

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages