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

View File

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

View File

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

View File

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