diff --git a/restfox/README.md b/restfox/README.md new file mode 100644 index 0000000..6bc29ff --- /dev/null +++ b/restfox/README.md @@ -0,0 +1 @@ +docker stack deploy -c restfox.yml restfox diff --git a/restfox/restfox.yml b/restfox/restfox.yml new file mode 100644 index 0000000..ab9589c --- /dev/null +++ b/restfox/restfox.yml @@ -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