Skip to content

Commit

Permalink
Запуск в продакшн с помощью Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
bezumkin committed Sep 14, 2023
1 parent 4146a60 commit 8a1f468
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docker/docker-production.yml
Expand Up @@ -62,5 +62,6 @@ services:
depends_on:
- nginx
network_mode: 'service:nginx'
restart: unless-stopped
working_dir: /vesp/frontend
command: sh -c 'yarn && yarn generate'
command: sh -c 'yarn && yarn generate:admin && yarn build:site && yarn start:site'
14 changes: 9 additions & 5 deletions docker/nginx/default.conf.template
Expand Up @@ -30,11 +30,15 @@ server {
}

location / {
root /vesp/frontend/dist/site/;
access_log off;
log_not_found off;
expires 1y;
try_files $uri /200.html;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
proxy_read_timeout 240s;
proxy_pass http://127.0.0.1:4100;
}

location ~ \.php$ {
Expand Down

0 comments on commit 8a1f468

Please sign in to comment.