This commit is contained in:
Administrator 2022-08-30 22:22:29 +03:00
parent 46115bb3ce
commit 3b0cc9caed
4 changed files with 10 additions and 15 deletions

View File

@ -3,20 +3,15 @@ version: "3.4"
services:
nginx:
sprint-nginx:
image: mathwave/sprint-repo:sprint-nginx
volumes:
- /sprint-data/static:/var/www/html/static
networks:
- net
ports:
- "1235:80"
- sprint-nginx
deploy:
mode: replicated
restart_policy:
condition: any
placement:
constraints: [node.role == manager]
update_config:
parallelism: 1
order: start-first
@ -199,3 +194,5 @@ services:
networks:
net:
driver: overlay
sprint-nginx:
external: true

View File

@ -3,20 +3,15 @@ version: "3.4"
services:
nginx:
sprint-nginx:
image: mathwave/sprint-repo:sprint-nginx
volumes:
- /sprint-data/static:/var/www/html/static
networks:
- net
ports:
- "1235:80"
- sprint-nginx
deploy:
mode: replicated
restart_policy:
condition: any
placement:
constraints: [node.role == manager]
update_config:
parallelism: 1
order: start-first
@ -207,3 +202,5 @@ services:
networks:
net:
driver: overlay
sprint-nginx:
external: true

View File

@ -19,6 +19,7 @@ build:
.deploy:
before_script:
- docker login -u mathwave -p $DOCKERHUB_PASSWORD
- docker network create -d overlay --attachable sprint-nginx || true
deploy-dev:
extends:

View File

@ -2,7 +2,7 @@ events {}
http {
server {
listen 80;
listen 1235;
location /checker/ {
proxy_pass http://polling:7998/checker/;