This commit is contained in:
Administrator 2022-08-30 21:22:39 +03:00
parent 45c1f85307
commit 38b4003405
2 changed files with 15 additions and 16 deletions

View File

@ -6,6 +6,9 @@ services:
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
networks:
- nginx-dev
- nginx-battleship
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
@ -103,3 +106,9 @@ services:
volumes: volumes:
minio_data: minio_data:
driver: local driver: local
networks:
nginx-dev:
driver: overlay
nginx-battleship:
driver: overlay

View File

@ -4,10 +4,8 @@ http {
client_max_body_size 50m; client_max_body_size 50m;
server { server {
listen 443; listen 80;
server_name dev.develop.sprinthub.ru; server_name dev.develop.sprinthub.ru;
ssl_certificate /etc/nginx/fullchain.pem;
ssl_certificate_key /etc/nginx/privkey.pem;
location / { location / {
proxy_pass http://dev.develop.sprinthub.ru:1235/; proxy_pass http://dev.develop.sprinthub.ru:1235/;
@ -15,10 +13,8 @@ http {
} }
server { server {
listen 443; listen 80;
server_name swarmpit.develop.sprinthub.ru; server_name swarmpit.develop.sprinthub.ru;
ssl_certificate /etc/nginx/fullchain.pem;
ssl_certificate_key /etc/nginx/privkey.pem;
location / { location / {
proxy_pass http://dev.develop.sprinthub.ru:888/; proxy_pass http://dev.develop.sprinthub.ru:888/;
@ -26,10 +22,8 @@ http {
} }
server { server {
listen 443; listen 80;
server_name rabbitmq.develop.sprinthub.ru; server_name rabbitmq.develop.sprinthub.ru;
ssl_certificate /etc/nginx/fullchain.pem;
ssl_certificate_key /etc/nginx/privkey.pem;
location / { location / {
proxy_pass http://dev.develop.sprinthub.ru:15672/; proxy_pass http://dev.develop.sprinthub.ru:15672/;
@ -37,10 +31,8 @@ http {
} }
server { server {
listen 443; listen 80;
server_name minio.develop.sprinthub.ru; server_name minio.develop.sprinthub.ru;
ssl_certificate /etc/nginx/fullchain.pem;
ssl_certificate_key /etc/nginx/privkey.pem;
location / { location / {
proxy_pass http://dev.develop.sprinthub.ru:9001/; proxy_pass http://dev.develop.sprinthub.ru:9001/;
@ -48,10 +40,8 @@ http {
} }
server { server {
listen 443; listen 80;
server_name battleship.develop.sprinthub.ru; server_name battleship.develop.sprinthub.ru;
ssl_certificate /etc/nginx/fullchain.pem;
ssl_certificate_key /etc/nginx/privkey.pem;
location / { location / {
proxy_pass http://dev.develop.sprinthub.ru:1236/; proxy_pass http://dev.develop.sprinthub.ru:1236/;