Skip to content

Commit

Permalink
Add replacement trigger for plane containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Jul 14, 2024
1 parent 6c99375 commit c9878a2
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions modules/docker/plane/containers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ resource "docker_container" "plane_web" {
name = docker_network.plane.name
aliases = ["web"]
}

lifecycle {
replace_triggered_by = [
docker_container.plane_api.id,
docker_container.postgres.id,
docker_container.valkey.id,
docker_container.minio.id,
]
}
}

//noinspection HILUnresolvedReference
Expand All @@ -164,6 +173,15 @@ resource "docker_container" "plane_space" {
name = docker_network.plane.name
aliases = ["space"]
}

lifecycle {
replace_triggered_by = [
docker_container.plane_api.id,
docker_container.postgres.id,
docker_container.valkey.id,
docker_container.minio.id,
]
}
}

//noinspection HILUnresolvedReference
Expand All @@ -182,6 +200,15 @@ resource "docker_container" "plane_admin" {
name = docker_network.plane.name
aliases = ["admin"]
}

lifecycle {
replace_triggered_by = [
docker_container.plane_api.id,
docker_container.postgres.id,
docker_container.valkey.id,
docker_container.minio.id,
]
}
}

//noinspection HILUnresolvedReference
Expand All @@ -205,6 +232,14 @@ resource "docker_container" "plane_api" {
name = docker_network.plane.name
aliases = ["api"]
}

lifecycle {
replace_triggered_by = [
docker_container.postgres.id,
docker_container.valkey.id,
docker_container.minio.id,
]
}
}

//noinspection HILUnresolvedReference
Expand All @@ -227,6 +262,14 @@ resource "docker_container" "plane_worker" {
networks_advanced {
name = docker_network.plane.name
}

lifecycle {
replace_triggered_by = [
docker_container.postgres.id,
docker_container.valkey.id,
docker_container.minio.id,
]
}
}

//noinspection HILUnresolvedReference
Expand All @@ -249,6 +292,14 @@ resource "docker_container" "plane_beat_worker" {
networks_advanced {
name = docker_network.plane.name
}

lifecycle {
replace_triggered_by = [
docker_container.postgres.id,
docker_container.valkey.id,
docker_container.minio.id,
]
}
}

//noinspection HILUnresolvedReference
Expand Down

0 comments on commit c9878a2

Please sign in to comment.