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