infra/.deploy/deploy-prod.yaml
Administrator e0776dfffd postgres
2022-08-15 16:23:40 +03:00

34 lines
702 B
YAML

version: "3.6"
services:
nginx:
image: nginx
volumes:
- ../nginx_prod:/etc/nginx
ports:
- "80:80"
deploy:
mode: replicated
replicas: 2
restart_policy:
condition: any
placement:
constraints: [node.role == manager]
update_config:
parallelism: 1
order: start-first
postgres:
image: postgres
volumes:
- /sprint-data/postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
deploy:
mode: replicated
restart_policy:
condition: any
placement:
constraints: [node.role == manager]
update_config:
parallelism: 1
order: start-first