@@ -71,68 +71,20 @@ See [dockergento workflow](#workflow) for a better understanding about whole dev
7171
7272## Installation
7373
74- 1 . Copy this docker configuration repository in your project
74+ 1 . Install [ magento2-dockergento-console ] ( https://github.com/ModestCoders/magento2-dockergento-console )
7575
76- ```
77- cd <path_to_your_project>
78- curl -L https://api.github.com/repos/ModestCoders/magento2-dockergento/tarball | tar xz --strip=1
79- ```
76+ 2 . Setup docker in your project:
77+
78+ ```
79+ cd <path_to_your_project>
80+ dockergento setup
81+ ```
8082
81- 2 . Edit binded paths or nginx configuration if needed
83+ 3. [Optional] If you have a multi-store magento, you need to add your website codes to the ngnix configuration as follows:
8284
8385 <details>
84- <summary>More info about custom configurations</summary>
85-
86- **Binded Paths:**
87-
88- If you install magento code in a different folder than your project root, you might need to replace `<magento_dir>` on the following files:
89-
90- * `docker-compose.yml`
91-
92- ```
93- app-volumes:
94- build: ./config/docker/image/app-volumes
95- volumes: &appvolumes
96- - ~/.composer:/var/www/.composer:delegated
97- - sockdata:/sock
98- - magento:/var/www/html/<magento_dir>
99- - ./app:/var/www/html/<magento_dir>/app:delegated
100- - ./.git:/var/www/html/.git:delegated
101- - ./config:/var/www/html/config:delegated
102- - ./composer.json:/var/www/html/composer.json:delegated
103- - ./composer.lock:/var/www/html/composer.lock:delegated
104- # Add here the rest of files and folders in your git repository that you want to bind between host and container
105-
106- unison:
107- image: modestcoders/unison:2.51.2
108- volumes:
109- - magento:/var/www/html/<magento_dir>
110- - ./<magento_dir>/vendor:/sync/<magento_dir>/vendor
111- environment:
112- - SYNC_SOURCE_BASE_PATH=/sync/<magento_dir>
113- - SYNC_DESTINATION_BASE_PATH=/var/www/html/<magento_dir>
114- - SYNC_MAX_INOTIFY_WATCHES=60000
115- ```
116-
117- * ` config/docker/image/app-volumes/Dockerfile `
118-
119- ```
120- RUN mkdir -p /var/www/html/<magento_dir> && chown -R 1000:1000 /var/www/html
121- ```
122-
123- * ` config/docker/image/nginx/conf/default.conf `
124-
125- ```
126- server {
127- # ...
128- set $MAGE_ROOT /var/www/html/<magento_dir>;
129- # ...
130- ```
131-
132- ** Nginx Multi-store:**
133-
134- If you have a multi-store magento, you need to add your website codes to the ngnix configuration as follows:
135-
86+ <summary>Open info about ngnix configuration</summary>
87+
13688 * `config/docker/image/nginx/conf/default.conf`
13789
13890 ```
@@ -148,8 +100,6 @@ See [dockergento workflow](#workflow) for a better understanding about whole dev
148100 ```
149101 </details>
150102
151- 3 . Install [ magento2-dockergento-console] ( https://github.com/ModestCoders/magento2-dockergento-console )
152-
153103## Usage
154104
155105### Start Application
0 commit comments