This commit is contained in:
Administrator 2022-08-30 21:32:40 +03:00
parent d69213d49f
commit cb7e066504
3 changed files with 4 additions and 6 deletions

View File

@ -7,14 +7,11 @@ services:
image: mathwave/sprint-repo:battleship-nginx
networks:
- battleship-net
ports:
- "1236:80"
- battleship-nginx
deploy:
mode: replicated
restart_policy:
condition: any
placement:
constraints: [node.role == manager]
update_config:
parallelism: 1
order: start-first

View File

@ -18,6 +18,7 @@ build:
.deploy:
before_script:
- docker login -u mathwave -p $DOCKERHUB_PASSWORD
- docker network create -d overlay battleship-nginx
deploy-dev:
extends:

View File

@ -2,7 +2,7 @@ events {}
http {
server {
listen 80;
listen 1236;
location /api/ {
proxy_pass http://backend:8000/api/;