Skip to content

Commit d248117

Browse files
author
Alankrit Srivastava
authored
Update README.md
1 parent 3f55955 commit d248117

File tree

1 file changed

+19
-28
lines changed

1 file changed

+19
-28
lines changed

README.md

+19-28
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### Optimising Magento 2 with Varnish Cache, Redis and Nginx SSL termination on the Multi-container Architecture Using Docker-Compose tool.
1+
### Optimising Magento 2 with Varnish Cache, Redis and Nginx SSL termination on the Multi-container Architecture Using Docker-Compose tool.
22

33
This repository corresponds to architecture setup as mentioned in blog https://cloudkul.com/blog/integrate-magento-2-varnish-cache-redis-server-ssl-termination-using-docker-compose/ .
44

@@ -30,46 +30,41 @@ Magento 2 works out of box with Varnish Cache and provides its own VCL file for
3030

3131
Nginx servers as reverse proxy server that receives traffic on port 80 and 443 and then proxy pass it to listening port of Varnish Cache server. It is done to deploy a way to direct both HTTP and HTTPS traffic to Varnish cache server which in turn, if needed, forward it apache2 server.
3232

33-
3433
In this project, we are using:
3534

36-
> Operating system: Ubuntu 14.04
35+
> Operating system: Ubuntu 16.04
3736
3837
> Web Server: Apache2
3938
40-
> Database Server: Mysql-server-5.6
39+
> Database Server: Mysql-server-5.7
40+
41+
> Cache Server: Varnish 4.1
4142
42-
> Cache Server: Varnish 3.0.
43+
> PHP version: PHP-7.1
4344
4445
> Redis server: Redis
4546
4647
> SSL server: Nginx 1.10.1
4748
48-
> PHP version: PHP-7.0
49-
50-
> Magento 2.1.6
51-
52-
To begin with, please install docker and docker-compose on your ubuntu 14.04 server.
49+
To begin with, please install docker and docker-compose on your ubuntu server.
5350

5451
Then follow the following steps:
5552

5653
1). Clone or download this repository as
5754

58-
> git clone https://github.com/webkul/magento2-varnish-redis-ssl-docker-compose.git
59-
60-
2) Set/modify mysql root credentials. Go to ~/magento2-varnish-redis-ssl-docker-compose/docker-compose.yml and change mysql root password in database_server in:
55+
> git clone https://github.com/webkul/magento2-varnish-docker-compose.git
6156
62-
> mysql_password=rootpassword123
57+
2) Set mysql root credentials and name of the database to be created in ~/magento2-varnish-docker-compose/docker-compose.yml.
6358

64-
3). Modify change database name, database user and mysql root credentials in ~/magento2-varnish-redis-ssl-docker-compose/database_server/mysql.sh in:
59+
> mysql_password=
6560
66-
> database_name=magento_db ## Mention database name
61+
> mysql_database=
6762
68-
> database_user=magento_user ## Mention database user
63+
3). Download Magento 2 version you wish to dockerize and upload it in directory magento2 in parallel docker-compose.yml.
6964

70-
> database_root_password=rootpassword123 ## Mention mysql root password.
65+
> Go to https://magento.com/tech-resources/download? .
7166
72-
4). Replace the IP address assigned to 'server_name' in ~/magento2-varnish-redis-ssl-docker-compose/ssl_server/default with your domain name or IP address.
67+
4). Add value in 'server_name' in ~/magento2-varnish-redis-ssl-docker-compose/ssl_server/default with your domain name or IP address.
7368

7469
5). Build the docker image.
7570

@@ -89,15 +84,6 @@ Then follow the following steps:
8984
9085
> docker ps
9186
92-
9). Your database credentials are mentioned in mysql.sh file. Database user password will be randomly generated. Database user password will be stored in /var/log/check.log. To get database user password,
93-
94-
> docker exec -ti mysql bash
95-
96-
> cat /var/log/check.log
97-
98-
or,
99-
100-
> docker exec -i mysql cat /var/log/check.log
10187

10288
Now, your server setup is all ready, now hit your domain name or IP to install Magento 2. Now to configure Varnish for Magento 2 and test its working, please refer to blog https://cloudkul.com/blog/magento-2-and-varnish-cache-integration-with-docker-compose/.
10389

@@ -109,3 +95,8 @@ To configure Magento 2 for redis-server, please refer to blog https://cloudkul.c
10995
Although we had secured our application code keeping it on our host but database is as important as server code. So in order to keep their backup we schedule a shell script that will take backups of all the databases present in mysql-server container and keep them in archived from on our host. Shell script is present on ~/magento2-varnish-redis-ssl-docker-compose/backups/db_backup.sh. Please refer to blog https://cloudkul.com/blog/integrate-magento-2-varnish-cache-redis-server-ssl-termination-using-docker-compose/ for backup management.
11096

11197
If you face any issues, kindly report back.
98+
99+
100+
#### GETTING SUPPORT
101+
102+
If you have any issues, contact us at [email protected] or raise ticket at https://webkul.uvdesk.com/

0 commit comments

Comments
 (0)