alexcheng1982 / docker-magento2

Docker image for Magento Open Source 2
MIT License
382 stars 256 forks source link

Module Development #17

Closed jnrbo closed 6 years ago

jnrbo commented 6 years ago

Hi there, how can I create a volume to Module development?

For example, using Docker's wordpress I can add at docker-compose.yml:

volumes:
       - ./plugins:/var/www/html/wp-content/plugins

And every plugin added to Wordpress will be accessible from plugins folder.

Do you know any way to do this in Magento2 using your Docker image?

Morgy93 commented 6 years ago

You can easily include your own volume for development (which is still no fun then)

volumes:
      - ./local/path/to/your/module:/var/www/html/app/code/jnrbo/mymodule
      - ./local/path/to/your/theme:/var/www/html/app/frontend/jnrbo/mytheme