restfox service manifests added
This commit is contained in:
parent
87f8f042e3
commit
7df0a8769e
1
restfox/README.md
Normal file
1
restfox/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
docker stack deploy -c restfox.yml restfox
|
||||
47
restfox/restfox.yml
Normal file
47
restfox/restfox.yml
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user