restfox service manifests added

This commit is contained in:
kube-master@emrekirman.com 2025-12-30 18:43:50 +00:00
parent 87f8f042e3
commit 7df0a8769e
2 changed files with 48 additions and 0 deletions

1
restfox/README.md Normal file
View File

@ -0,0 +1 @@
docker stack deploy -c restfox.yml restfox

47
restfox/restfox.yml Normal file
View File

@ -0,0 +1,47 @@
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