48 lines
898 B
YAML
48 lines
898 B
YAML
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
|