Fix problems with coder main.tf

This commit is contained in:
Jeroen Vijgen
2025-08-13 00:44:08 +03:00
committed by GitHub
parent a78bb26fd8
commit 0f0c68b4e0
@@ -9,7 +9,7 @@ terraform {
locals {
container_name = "coder"
postgres_container_name = "coder-postgres"
coder_image = "lscr.io/linuxserver/coder"
coder_image = "ghcr.io/coder/coder"
postgres_image = "docker.io/library/postgres"
coder_tag = var.image_tag
postgres_tag = var.postgres_image_tag
@@ -70,10 +70,6 @@ module "coder" {
env_vars = local.coder_env_vars
networks = concat(var.networks)
restart_policy = "always"
labels = [{
label = "run.oci.keep_original_groups"
value = "1"
}]
security_opts = [
"label:type:container_runtype_t"
]
@@ -87,4 +83,4 @@ output "service_definition" {
endpoint = "http://${local.container_name}:${local.coder_internal_port}"
subdomains = ["code"]
}
}
}