From edc315b4f54fb7ae35cdbc12284a0284c2329fab Mon Sep 17 00:00:00 2001 From: Administrator Date: Tue, 30 Aug 2022 22:12:15 +0300 Subject: [PATCH] battleship-prod --- .deploy/deploy-prod.yaml | 8 +++++++- nginx/nginx-prod/nginx-prod.conf | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.deploy/deploy-prod.yaml b/.deploy/deploy-prod.yaml index 34aae65..025eb43 100644 --- a/.deploy/deploy-prod.yaml +++ b/.deploy/deploy-prod.yaml @@ -5,6 +5,8 @@ services: image: mathwave/sprint-repo:sprint-infra-nginx-prod ports: - "80:80" + networks: + - battleship-nginx deploy: mode: replicated replicas: 2 @@ -101,4 +103,8 @@ services: volumes: minio_data: - driver: local \ No newline at end of file + driver: local + +networks: + battleship-nginx: + external: true \ No newline at end of file diff --git a/nginx/nginx-prod/nginx-prod.conf b/nginx/nginx-prod/nginx-prod.conf index 91cd883..ffea534 100644 --- a/nginx/nginx-prod/nginx-prod.conf +++ b/nginx/nginx-prod/nginx-prod.conf @@ -52,7 +52,7 @@ http { server_name battleship.sprinthub.ru; location / { - proxy_pass http://dev.sprinthub.ru:1236/; + proxy_pass http://battleship-nginx:1236/; } } } \ No newline at end of file