nginx
This commit is contained in:
parent
46115bb3ce
commit
3b0cc9caed
@ -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
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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/;
|
||||||
|
Loading…
Reference in New Issue
Block a user