Skip to content

Commit

Permalink
Add the restart policy to frontend service
Browse files Browse the repository at this point in the history
[refs #5ff31036794d]
  • Loading branch information
jfahrer committed May 5, 2018
1 parent 9550214 commit 6bde50c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion swarm/swarm-demo-frontend/docker-compose.prod.yml
Expand Up @@ -7,12 +7,16 @@ services:
secrets:
- pg_secret
deploy:
replicas: 10
replicas: 3
update_config:
failure_action: rollback
parallelism: 3
delay: 3s
max_failure_ratio: 0.1
restart_policy:
condition: any
delay: 15s
max_attempts: 1

db:
secrets:
Expand Down

0 comments on commit 6bde50c

Please sign in to comment.