
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
51 lines
1.2 KiB
YAML
51 lines
1.2 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
|
|
|
|
molva-notifications:
|
|
image: molvaapp/notification:latest
|
|
container_name: molva-notifications
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /opt/molva:/opt/molva
|
|
networks:
|
|
- molva
|
|
|
|
networks:
|
|
molva:
|
|
external: true |