battleship-back/.deploy/deploy-dev.yaml
Administrator bec3d67171 initial
2022-08-22 14:43:21 +03:00

42 lines
790 B
YAML

version: "3.4"
services:
nginx:
image: mathwave/sprint-repo:battleship-nginx
networks:
- net
ports:
- "1236:80"
deploy:
mode: replicated
restart_policy:
condition: any
placement:
constraints: [node.role == manager]
update_config:
parallelism: 1
order: start-first
backend:
image: mathwave/sprint-repo:battleship-back
networks:
- net
environment:
DB_HOST: "pg.develop.sprinthub.ru"
DB_PASSWORD: $DB_PASSWORD_DEV
DEBUG: "true"
command: ./manage.py runserver 0.0.0.0:8000
deploy:
mode: replicated
restart_policy:
condition: any
update_config:
parallelism: 1
order: start-first
networks:
net:
driver: overlay