Files
test_deploy/docker-compose.staging.yaml
Alex Shevchuk ad72aa2a5e
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been cancelled
Go Linter / Push Docker Images (api_gateway) (push) Has been cancelled
Go Linter / Run golangci-lint (api_gateway) (push) Has been cancelled
4
2025-08-18 17:21:38 +03:00

53 lines
1.3 KiB
YAML

version: "3.9"
services:
molva-api-gateway:
image: molvaapp/api_gateway:${VERSION:-latest}
container_name: molva-api-gateway
restart: unless-stopped
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
molva-notifications:
image: molvaapp/notification:latest
container_name: molva-notifications
restart: unless-stopped
volumes:
- /opt/molva:/opt/molva
networks:
- molva
networks:
molva:
external: true