Skip to content

Commit

Permalink
[deploy] use of start-first update and rollback strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
capcom6 committed Dec 5, 2024
1 parent 69b9a23 commit ffa40aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deployments/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,14 @@ resource "docker_service" "app" {
value = 80
}

rollback_config {
order = "start-first"
monitor = "5s"
}

update_config {
order = "start-first"
failure_action = "rollback"
monitor = "5s"
}
}

0 comments on commit ffa40aa

Please sign in to comment.