This commit is contained in:
Alex Shevchuk
2025-08-18 17:12:04 +03:00
commit d84487d238
157 changed files with 160686 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
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: 3
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