Manifests/restfox/restfox.yml
2025-12-30 18:43:50 +00:00

48 lines
898 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8'
services:
restfox:
image: flawiddsouza/restfox:0.40.0
ports:
- target: 4004
published: 4004
protocol: tcp
mode: host # NodePort benzeri davranış için 'host' modu
volumes:
- restfox-data:/app/data
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.labels.platform == dev
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
update_config:
parallelism: 1
delay: 10s
failure_action: rollback
order: start-first
rollback_config:
parallelism: 1
delay: 5s
order: stop-first
networks:
- restfox-network
networks:
restfox-network:
driver: overlay
attachable: true
volumes:
restfox-data:
driver: local