Хочешь сказать на 2,4 нельзя получить даже 100?
frontend:
build:
context: ./front
dockerfile: Dockerfile
depends_on:
- backend
networks:
- dev
ports:
- "3000:3000"
(sshd под пользователем Я пускает),
location /api/ {
proxy_pass https://backend:8443/;
networks:
dev:
services:
nginx:
image: nginx:stable-alpine
ports:
- "443:443"
volumes:
- "./nginx.conf:/etc/nginx/nginx.conf"
- "C:/https_certs/localhost-key.pem:/etc/nginx/https_certs/localhost-key.pem"
- "C:/https_certs/localhost.pem:/etc/nginx/https_certs/localhost.pem"
depends_on:
- backend
- frontend
networks:
- dev
location / {
proxy_pass http://frontend:3000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /api/ {
proxy_pass http://backend:8443/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
root@photon-machine [ /opt/nginx ]# cat default.conf | grep -v '#'
server {
listen 80;
listen [::]:80;
server_name _;
location / {
root /var/www;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
root@photon-machine [ /opt/nginx ]# docker exec -it web cat /etc/nginx/nginx.conf
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
phpLdapAdmin vs
и тебе сразу альтернативы подтянутся в поиск.