Giter VIP home page Giter VIP logo

magento's Introduction

Docker Stars Docker Pulls Docker Automated Docker Build

Magento Docker build files

This repo contains Magento docker build files for different versions of Magento

Installing

1. Clone repository
2. cd magento/<version>/dockerfiles 

Find .env file open it with editor and replace all vars wrapped with {{var}} .  
Example: DB_USER: {{DB_USER}} to  DB_USER:magento

3. docker-compose up -d 

Built With

Getting Started

Example docker-compose.yml file:

version: '2'

volumes:
  mariadb_data:
    driver: local
  magento_data:
    driver: local

services:
  magento:
    image: ${REGISTRY}trydirect:magento:2.3.2
    container_name: magento
    env_file:
      .env
    volumes:
      - ./magento:/home/magento2   
      - /var/www
      - magento_data:/data
      - ./cron:/var/spool/cron/crontabs
    depends_on:
      - mariadb
    working_dir:  /var/www/magento2

  mariadb:
    image: "mariadb:latest"
    container_name: magento_mariadb
    env_file:
      .env
    volumes:
      - "mariadb_data:/var/lib/mysql"

  nginx:
    image: ${REGISTRY}nginx-le:stable
    container_name: nginx
    env_file: .env
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./certs/ssl:/etc/ssl/nginx
      - ./certs/letsencrypt:/etc/letsencrypt
      - ./cron/nginx:/var/spool/cron/crontabs
      - ./nginx/conf.d:/etc/nginx/conf.d/
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf
      - ./null:/etc/nginx/sites-enabled
      - ./supervisord/nginx.conf:/etc/supervisor/conf.d/nginx.conf
    links:
      - magento
    entrypoint: /usr/bin/supervisord -c /etc/supervisor/supervisord.conf -n

Quick deployment to cloud

Amazon AWS, Digital Ocean, Hetzner and others

Contributing

Join https://gitter.im/try-direct/community for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning.

Authors

See the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

How to mount magento from host machine

Add

volumes:
      - ./magento:/var/www/magento2

to magento service in case you have magento source code on your host machine and want to sync directories with container.

magento's People

Contributors

adziubin avatar annaopt avatar vsilent avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.