nginx
This commit is contained in:
parent
46115bb3ce
commit
3b0cc9caed
@ -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
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -2,7 +2,7 @@ events {}
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 80;
|
||||
listen 1235;
|
||||
|
||||
location /checker/ {
|
||||
proxy_pass http://polling:7998/checker/;
|
||||
|
Loading…
Reference in New Issue
Block a user