File tree Expand file tree Collapse file tree 7 files changed +47
-52
lines changed
Expand file tree Collapse file tree 7 files changed +47
-52
lines changed Original file line number Diff line number Diff line change @@ -4,25 +4,25 @@ services:
44 image : nginx:1.12
55 container_name : site1
66 volumes :
7- - ./site1:/usr/share/nginx/html/
7+ - ./site1/index.html:/usr/share/nginx/html/index.html
8+ - ./site1/nginx.conf:/etc/nginx/nginx.conf
89 expose :
910 - " 80"
1011 networks :
11- - nginx
12+ - nginx-network
1213
1314 site2 :
1415 image : nginx:1.12
1516 container_name : site2
1617 volumes :
17- - ./site2:/usr/share/nginx/html/
18+ - ./site2/index.html:/usr/share/nginx/html/index.html
19+ - ./site2/nginx.conf:/etc/nginx/nginx.conf
1820 expose :
1921 - " 80"
2022 networks :
21- - nginx
23+ - nginx-network
2224
2325 reverse_proxy :
24- build :
25- context : ./reverse-proxy
2626 image : nginx:1.12
2727 container_name : proxy
2828 volumes :
@@ -32,9 +32,9 @@ services:
3232 ports :
3333 - " 80:80"
3434 networks :
35- - nginx
35+ - nginx-network
3636
3737networks :
38- nginx :
39- name : nginx
38+ nginx-network :
39+ name : nginx-network
4040 driver : bridge
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ worker_processes auto;
2+
3+ events {
4+ worker_connections 20000 ;
5+ }
6+
7+ http {
8+ server {
9+ listen 80 ;
10+ root /usr/share/nginx/html;
11+
12+ location / {
13+ index index .html;
14+ }
15+
16+ error_log /var/log/nginx/error.log warn;
17+ access_log /var/log/nginx/access.log;
18+ }
19+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ worker_processes auto;
2+
3+ events {
4+ worker_connections 20000 ;
5+ }
6+
7+ http {
8+ server {
9+ listen 80 ;
10+ root /usr/share/nginx/html;
11+
12+ location / {
13+ index index .html;
14+ }
15+
16+ error_log /var/log/nginx/error.log warn;
17+ access_log /var/log/nginx/access.log;
18+ }
19+ }
You can’t perform that action at this time.
0 commit comments