Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kistters/devops-php-mysql-tools
Dockerized Magento*
https://github.com/kistters/devops-php-mysql-tools
brasil docker-compose magento magento2 mailhog mysql nginx php-7 phpmyadmin
Last synced: about 1 month ago
JSON representation
Dockerized Magento*
- Host: GitHub
- URL: https://github.com/kistters/devops-php-mysql-tools
- Owner: kistters
- Created: 2017-01-03T04:02:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T21:51:00.000Z (over 5 years ago)
- Last Synced: 2024-10-12T12:21:54.235Z (about 1 month ago)
- Topics: brasil, docker-compose, magento, magento2, mailhog, mysql, nginx, php-7, phpmyadmin
- Language: Shell
- Homepage:
- Size: 60.5 KB
- Stars: 10
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
docker-compose v2
```
- `nginx:1.13.8`
- `php:7.0.21-fpm`
- `php:5.6-fpm`
- `mysql:percona`
- `phpmyadmin | mailhog | redis`**[[Suggestion/Issue](https://github.com/kistters/DevOps-Php-MySQL-Tools/issues/new)]**
##### Magento 2
- config nginx
```
exemplo no arquivo nginx/sample-nginx.conf
crie um .conf dentro do diretório nginx/conf.d
lembre-se, server_name tem de estar configurado, no linux /etc/hosts
```
- instalar usando composer (rodar os comandos após subir os containers 'docker-compose up')
```
$ docker exec -it work_php-7 bash
$ composer create-project --prefer-dist --repository-url=https://repo.magento.com/ magento/project-community-edition /storage/ 2.2
```
- develop local permissões ~.~
```
$ docker exec -it work_nginx bash
$ cd /storage/
$ find var vendor generated pub/static pub/media app/etc -type f -exec chmod 777 {} \;
$ find var vendor generated pub/static pub/media app/etc -type d -exec chmod 777 {} \;
$ chmod u+x bin/magento
```
- lembre de criar o database ;D
```
$ docker exec -it work_percona bash
$ mysql -u...
```
continue a instalação pelo browser...
```
quando for preencher o "Database Server Host" coloque:
alias: percona
#recomendo
|ou|
ip:
$ docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' work_percona
#warning as vezes ao rebuildar os container mudam de IPAddress :kk
```su www-data -s /bin/sh -c 'php -d memory_limit=2G bin/magento setup:di:compile'