File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ services:
5
5
networks :
6
6
- webnet
7
7
deploy :
8
- replicas : 3 # Uruchom 3 instancje
8
+ replicas : 3
9
9
restart : always
10
10
11
11
nginx :
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ events {
5
5
6
6
http {
7
7
upstream php-app {
8
- server web:80; # Nazwa usługi aplikacji PHP w docker-compose.yml
8
+ server web:80;
9
9
}
10
10
11
11
server {
12
- listen 80 ; # Nginx nasłuchuje na porcie 80
12
+ listen 80 ;
13
13
14
14
location / {
15
- proxy_pass http://php-app; # Przekazywanie ruchu do grupy serwerów
16
- proxy_set_header Host $host ; # Ustawienie nagłówków
15
+ proxy_pass http://php-app;
16
+ proxy_set_header Host $host ;
17
17
proxy_set_header X-Real-IP $remote_addr ;
18
18
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
19
19
proxy_set_header X-Forwarded-Proto $scheme ;
You can’t perform that action at this time.
0 commit comments