1
This commit is contained in:
53
docker-compose.staging.yaml
Normal file
53
docker-compose.staging.yaml
Normal 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
|
Reference in New Issue
Block a user