Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chellinki/alpine-magento2

Magento 2 Running on alpine images with Nginx, MySQL, Varnish, PHP, Redis and using Traefik reverse proxy
https://github.com/chellinki/alpine-magento2

alpine docker-compose docker-container docker-images dockerfiles magento2 mariadb mysql nginx php-fpm php7 redis-cache traefik traefik-configurations varnish-cache yml

Last synced: 3 months ago
JSON representation

Magento 2 Running on alpine images with Nginx, MySQL, Varnish, PHP, Redis and using Traefik reverse proxy

Awesome Lists containing this project

README

        

# Sharath Chandra Sreenidhi - Alpine based Docker Magento

Alpine based Docker Magento

## `Installation Steps`: For local environments...

#### A) Clone the repository and change to the repo directory

```bash
git clone https://github.com/chellinki/alpine-magento2.git
cd alpine-magento2
```

#### B) Start the `Traefik` instance

```
docker-compose -f traefik/docker-compose.yml up -d
```

#### C) Start the `Magento2` instance

```
docker-compose -f magento2/sharaths.yml up -d
```

## `Installation Steps`: For production environments...

#### A) Clone the repository and change to the repo directory

```bash
git clone https://github.com/chellinki/alpine-magento2.git
cd alpine-magento2
```

#### B) Setup the Traefik configurations and start the Traefik instance

##### 1) Setup the Traefik configurations

```
vi traefik.toml
```

> Change `domain = "local.com"` to public domain name which you want to configure and add your emaid-id in `email = "[email protected]"`

Save the file **traefik.toml** and exit from vi editor

```
vi docker-compose.yml
```

> Change `traefik.frontend.rule=Host:traefik.local.com` to the domain name which you have opted for traefik

> Save the file **docker-compose.yml** and exit from vi editor

##### 2) Start the `Traefik` instance

```
docker-compose -f traefik/docker-compose.yml up -d
```

#### C) Configure the sharaths.yml file and Start the `Magento2 docker` instance

##### 1) Configure the sharaths.yml file

```
vi magento2/sharaths.yml
```

> Change `traefik.frontend.rule=Host:magento.local.com` to the domain name which you have opted for magento store

> Save the file **sharaths.yml** and exit from vi editor

##### 2) Start the `Magento2 docker` instance

```
docker-compose -f magento2/sharaths.yml up -d
```