All Projects β†’ eTribes-Connect-GmbH β†’ docker-setup

eTribes-Connect-GmbH / docker-setup

Licence: GPL-3.0 license
🐳 Docker setup by Etribes for almost every PHP based web application that needs a webserver and database.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to docker-setup

SwagMediaS3
No description or website provided.
Stars: ✭ 22 (+83.33%)
Mutual labels:  shopware
administration
No description or website provided.
Stars: ✭ 26 (+116.67%)
Mutual labels:  shopware
shopware6-advanced-banners
Advanced Banners (Digital Publishing) for Shopware 6 πŸ’™
Stars: ✭ 30 (+150%)
Mutual labels:  shopware
FroshPluginUploader
Tool for uploading new plugin releases to Shopware Store
Stars: ✭ 26 (+116.67%)
Mutual labels:  shopware
composer-project
Skeleton for Shopware projects with composer
Stars: ✭ 72 (+500%)
Mutual labels:  shopware
idea-php-shopware-plugin
Shopware Plugin for PhpStorm which extends Symfony Plugin
Stars: ✭ 50 (+316.67%)
Mutual labels:  shopware
hubble-frontend-pwa
E-Commerce PWA Frontend
Stars: ✭ 43 (+258.33%)
Mutual labels:  shopware
docs
No description or website provided.
Stars: ✭ 28 (+133.33%)
Mutual labels:  shopware
RecentlyViewedProduct
Recently viewed products plugin for SW6
Stars: ✭ 20 (+66.67%)
Mutual labels:  shopware
downtown
With our portal, we want to support local authorities and merchants. We want to connect merchants with closed stores to their customers. And we want to keep in mind, that not every merchant has a sophisticated digital strategy - or even a homepage.
Stars: ✭ 45 (+275%)
Mutual labels:  shopware
shopware-docker
A docker setup ready for shopware development
Stars: ✭ 75 (+525%)
Mutual labels:  shopware
shopware-php-sdk
A PHP SDK for Shopware 6 Admin API
Stars: ✭ 53 (+341.67%)
Mutual labels:  shopware
shopware-sdk
A PHP SDK for the Shopware 5 REST API
Stars: ✭ 33 (+175%)
Mutual labels:  shopware
SwagThreeSixtyViewer
No description or website provided.
Stars: ✭ 23 (+91.67%)
Mutual labels:  shopware
sw-cli-tools
The shopware CLI tools are your console helpers for all kind of shopware tasks
Stars: ✭ 80 (+566.67%)
Mutual labels:  shopware
plentymarkets-shopware-connector
plentymarkets shopware connector plugin
Stars: ✭ 32 (+166.67%)
Mutual labels:  shopware
sw6-media-optimizer
Image Optimizer for Shopware 6 πŸ’™
Stars: ✭ 18 (+50%)
Mutual labels:  shopware
shopware-cms-generator
Generate a CMS element scaffolding within seconds.
Stars: ✭ 26 (+116.67%)
Mutual labels:  shopware
shopware5-live-templates
Shopware Live Templates for PhpStorm
Stars: ✭ 14 (+16.67%)
Mutual labels:  shopware
Vue Storefront
The open-source frontend for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. We have custom integrations with Magento, commercetools, Shopware and Shopify and total coverage is just a matter of time. The API approach also allows you to merge VSF with any third-party tool like CMS, payment gateways or analytics. Ne…
Stars: ✭ 9,111 (+75825%)
Mutual labels:  shopware

Docker setup by Etribes

This docker setup was intended to be used with Shopware but as it is that generic you could run almost every PHP based web application that needs a webserver and database.

Feel free to contribute.

Important information: This setup is for local programing purposes only! It should not be used in a production environment.

Installation instructions

Getting started

  1. Set a host entry in your local hosts file to 127.0.0.1 dev.local
  2. Navigate to your projects root
  3. Execute git clone https://github.com/eTribes-Connect-GmbH/docker-setup.git
  4. Navigate to the created folder with cd docker-setup/
  5. Adjust the shopware release url in docker-compose.yml
  6. Execute docker-compose pull to get the newest images
  7. Change FULL_WIPE_ON_REBOOT in docker-compose.yml to "false" if you dont need the installation wizard.
  8. Change the environment variable COMPOSE_PROJECT_NAME=project in .env
  9. Execute docker-compose up
  10. If needed run your setup and change FULL_WIPE_ON_REBOOT in docker-compose.yml to "true" afterwards. Alternatively you can just import an SQL dump.
  11. Open http://dev.local/ in your browser.

Additional setup instruction for OS X users

Because of a bug in Docker for Mac you have to setup SFTP deployment in your PhpStorm.

  1. Open your Project PhpStorm.
  2. Navigate to Tools > Deployment > Configuration...
  3. Add a new SFTP server and name it "Docker SFTP". Default credentials:
    Host: dev.local
    User: root
    Password: password
    Port: 2200
    
  4. In the tab "Mapping", click on the most upper button to set the server as default server.
  5. Navigate to Tools > Deployment > Options...
  6. Change Upload changed files automatically to the default server to "Always".

Database credentials

Host: db
User: root
Password: root
Database: dev

Configuring Mailhog

  1. Navigate to the Shopware backend
  2. Open the Global Settings and search for "Mailer"
  3. Apply the following settings:
    • Method: smtp
    • Hostname for message id: mailhog.dev.local
    • Mail hostname: mailfetcher
    • Port: 1025
    • Prefix:
    • SMTP user: test
    • SMTP password: test
    • Connection auth: login
  4. Open the mailhog webinterface
  5. Send a mail from the Shopware backend (Settings -> Email Templates -> Choose a template -> Send test email to shop owner)

Configuring XDebug

  1. Open PhpStorm
  2. Click on "Run" and the sub element "Edit Configurations..."
  3. Add a new configuration with the type "PHP Remote Debug"
    1. Give it the name "docker"
    2. Check the checkbox "Filter debug connection by IDE key"
    3. Set the "IDE key (session id)" to "PHPSTORM"
    4. Configure a server by clicking on the "..." behind the select box.
      1. Apply the following settings: docs/server_configuration.png
    5. Click the OK button
  4. Click the OK button
  5. Now read the following tutorial and you should be ready to use XDebug: Using the PhpStorm Debugger

Docker structure

Image layers

  • datacontainer
    • Image: netshops/dev_data_container_shopware:latest
    • Description: This container holds a fresh installation of Shopware and extracts it on every "up".
  • datasync
    • Image: netshops/dev_data_sync:latest
    • Description: This container syncs /var/www/src into /var/www/html on "up" and after that constatly with inotify on file changes.
  • webserver
    • Image: netshops/dev_webserver
    • Description: Webserver to serve contents. Just configure it to your needs.
  • db
    • Image: percona:latest (MySQL Fork)
    • Description: A MySQL container. Choose whatever you like (e.g. MySQL, MariaDB, Percona)
  • mailfetcher
  • sftp
    • Image: netshops/docker_dev_sftp
    • Description: A sFTP container.

Directory structure

  • projectname/
    • docker-setup/
      • services/ (config files mounted as volumes)
        • percona
        • webserver
      • src/
        • config_dev.php (copy to ../../src/)
    • src/ (changed files that are synced into a fresh shop-installation)
      • custom/plugins/.../
      • engine/Shopware/Plugins/.../
      • themes/Frontend/YourThemeName/

Licence

This project uses the GNU General Public License v3.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].