/ terraform / modules / docker / variables.tf
variables.tf
 1  # Common variables
 2  variable "name" {
 3    type = string
 4  }
 5  
 6  variable "expose" {
 7    type    = bool
 8    default = true
 9  }
10  
11  variable "port" {
12    type     = number
13    nullable = true
14    default  = null
15  }
16  
17  variable "networks" {
18    type = list(object({
19      name = string
20    }))
21    default = []
22  }
23  
24  variable "restart" {
25    type    = string
26    default = "unless-stopped"
27  }
28  
29  variable "log_driver" {
30    type    = string
31    default = "local"
32  }
33  
34  variable "log_opts" {
35    type    = map(string)
36    default = {}
37  }
38  
39  # Default variables
40  variable "image_name" {
41    type    = string
42    default = "ghcr.io/foxfriends/catan"
43  }
44  
45  variable "image_version" {
46    type    = string
47    default = "main"
48  }