Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion config/stacks/karakeep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,11 @@ karakeep:
service_name: "chrome"
image_name: "gcr.io/zenika-hub/alpine-chrome:123"
networks:
- "karakeep-internal"
- "karakeep-internal"
commands:
- "--no-sandbox"
- "--disable-gpu"
- "--disable-dev-shm-usage"
- "---remote-debugging-address=0.0.0.0"
- "--remote-debugging-port=9222"
- "--hide-scrollbars"
1 change: 1 addition & 0 deletions terraform/modules/docker-stack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module "service_container" {
environment_vars = toset(concat(coalesce(var.stack.env, []), local.processed_envs[each.key], coalesce(var.stack.env, []), coalesce(local.oauth_envs[each.key], [])))
mounts = concat(coalesce(var.stack.mounts, []), coalesce(each.value.mounts, []))
container_capabilities = each.value.capabilities
commands = each.value.commands

# Attach the container to custom networks defined in the stack, but only if the service
# explicitly lists that network in its own configuration.
Expand Down
1 change: 1 addition & 0 deletions terraform/modules/docker-stack/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ variable "stack" {
password = optional(string, "")
env = optional(list(string))
mounts = optional(list(string))
commands = optional(list(string))
capabilities = optional(object({
add = optional(list(string))
drop = optional(list(string))
Expand Down
1 change: 1 addition & 0 deletions terraform/modules/docker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resource "docker_container" "container" {
restart = var.container_restart
dns = local.effective_network_mode != "host" ? var.container_dns_servers : null
privileged = var.container_privileged_mode
command = var.commands

dynamic "networks_advanced" {
for_each = var.attach_to_br1 && local.effective_network_mode != "host" ? [1] : []
Expand Down
5 changes: 5 additions & 0 deletions terraform/modules/docker/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ variable "web_ui"{
default = null
}

variable "commands"{
type = list(string)
default = null
}

variable "labels"{
type = set(object({
label = string
Expand Down