Files
test_deploy/docker-compose.staging.yaml
Alex Shevchuk 176cd406dd
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped
7
2025-08-18 17:52:44 +03:00

42 lines
1.0 KiB
YAML

version: "3.9"
services:
molva-api-gateway:
image: molvaapp/api_gateway:${VERSION:-latest}
ports:
- "8001:8000"
volumes:
- /opt/molva:/opt/molva
- /opt/molva/object_storage/credentials:/root/.aws/credentials:ro
- /opt/molva/object_storage/config:/root/.aws/config:ro
networks:
- molva
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/healthcheck"]
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 20s
window: 120s
update_config:
parallelism: 1
failure_action: rollback
monitor: 60s
max_failure_ratio: 0.3
order: start-first
rollback_config:
parallelism: 0
failure_action: continue
order: start-first
placement:
constraints:
- node.labels.env == stg
- node.labels.app == true
preferences:
- spread: node.labels.TZ
networks:
molva:
external: true