nginx
This commit is contained in:
parent
d69213d49f
commit
cb7e066504
@ -7,14 +7,11 @@ services:
|
|||||||
image: mathwave/sprint-repo:battleship-nginx
|
image: mathwave/sprint-repo:battleship-nginx
|
||||||
networks:
|
networks:
|
||||||
- battleship-net
|
- battleship-net
|
||||||
ports:
|
- battleship-nginx
|
||||||
- "1236: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
|
||||||
@ -55,4 +52,4 @@ services:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
battleship-net:
|
battleship-net:
|
||||||
driver: overlay
|
driver: overlay
|
@ -18,6 +18,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 battleship-nginx
|
||||||
|
|
||||||
deploy-dev:
|
deploy-dev:
|
||||||
extends:
|
extends:
|
||||||
|
@ -2,7 +2,7 @@ events {}
|
|||||||
|
|
||||||
http {
|
http {
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 1236;
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://backend:8000/api/;
|
proxy_pass http://backend:8000/api/;
|
||||||
|
Loading…
Reference in New Issue
Block a user