Add dozzle

This commit is contained in:
Marc Fokkert
2024-09-11 13:22:56 +02:00
parent 22dee7fafc
commit 7faae7f17e
3 changed files with 694 additions and 208 deletions

45
dozzle.tf Normal file
View File

@@ -0,0 +1,45 @@
data "docker_registry_image" "dozzle" {
name = "amir20/dozzle:latest"
}
resource "docker_image" "dozzle" {
name = data.docker_registry_image.dozzle.name
pull_triggers = [data.docker_registry_image.dozzle.sha256_digest]
}
resource "docker_container" "dozzle" {
image = docker_image.dozzle.image_id
name = "dozzle"
restart = "always"
log_driver = "local"
hostname = "dozzle"
env = [
]
networks_advanced {
name = docker_network.bridge.name
ipv4_address = "192.168.2.144"
}
mounts {
target = "/var/run/docker.sock"
source = "/var/run/docker.sock"
type = "bind"
read_only = true
}
ports {
internal = 8080
external = 80
}
lifecycle {
ignore_changes = [
ulimit,
log_opts
]
}
}

View File

@@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.5.5",
"serial": 3435,
"serial": 3444,
"lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec",
"outputs": {},
"resources": [
@@ -41,6 +41,24 @@
}
]
},
{
"mode": "data",
"type": "docker_registry_image",
"name": "dozzle",
"provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"id": "sha256:3f190215f174ef406e620af38a60f05a5e53651135aa91362df8ca8f816866e1",
"insecure_skip_verify": false,
"name": "amir20/dozzle:latest",
"sha256_digest": "sha256:3f190215f174ef406e620af38a60f05a5e53651135aa91362df8ca8f816866e1"
},
"sensitive_attributes": []
}
]
},
{
"mode": "data",
"type": "docker_registry_image",
@@ -941,6 +959,122 @@
}
]
},
{
"mode": "managed",
"type": "docker_container",
"name": "dozzle",
"provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]",
"instances": [
{
"schema_version": 2,
"attributes": {
"attach": false,
"bridge": "",
"capabilities": [],
"cgroupns_mode": null,
"command": [],
"container_logs": null,
"container_read_refresh_timeout_milliseconds": 15000,
"cpu_set": "",
"cpu_shares": 0,
"destroy_grace_seconds": null,
"devices": [],
"dns": null,
"dns_opts": null,
"dns_search": null,
"domainname": "",
"entrypoint": [
"/dozzle"
],
"env": [],
"exit_code": null,
"gpus": null,
"group_add": null,
"healthcheck": null,
"host": [],
"hostname": "dozzle",
"id": "c8b3a7cf9c36f1c60d9556fdaf130f3902b260dc1094eb0f9871eb953aec9462",
"image": "sha256:e4ecceceb99fe838ad1d8be9673f878bbe2589012bcf53080b45f808eba343dd",
"init": false,
"ipc_mode": "private",
"labels": [],
"log_driver": "local",
"log_opts": null,
"logs": false,
"max_retry_count": 0,
"memory": 0,
"memory_swap": 0,
"mounts": [
{
"bind_options": [],
"read_only": true,
"source": "/var/run/docker.sock",
"target": "/var/run/docker.sock",
"tmpfs_options": [],
"type": "bind",
"volume_options": []
}
],
"must_run": true,
"name": "dozzle",
"network_data": [
{
"gateway": "192.168.2.1",
"global_ipv6_address": "",
"global_ipv6_prefix_length": 0,
"ip_address": "192.168.2.144",
"ip_prefix_length": 24,
"ipv6_gateway": "",
"mac_address": "02:42:ff:32:c2:22",
"network_name": "qnet-static-eth0-48e715"
}
],
"network_mode": "default",
"networks_advanced": [
{
"aliases": [],
"ipv4_address": "192.168.2.144",
"ipv6_address": "",
"name": "qnet-static-eth0-48e715"
}
],
"pid_mode": "",
"ports": [],
"privileged": false,
"publish_all_ports": false,
"read_only": false,
"remove_volumes": true,
"restart": "always",
"rm": false,
"runtime": "runc",
"security_opts": [],
"shm_size": 64,
"start": true,
"stdin_open": false,
"stop_signal": "",
"stop_timeout": 0,
"storage_opts": null,
"sysctls": null,
"tmpfs": null,
"tty": false,
"ulimit": [],
"upload": [],
"user": "",
"userns_mode": "",
"volumes": [],
"wait": false,
"wait_timeout": 60,
"working_dir": "/"
},
"sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
"dependencies": [
"docker_image.dozzle",
"docker_network.bridge"
]
}
]
},
{
"mode": "managed",
"type": "docker_container",
@@ -4522,7 +4656,7 @@
"ip_address": "192.168.2.126",
"ip_prefix_length": 24,
"ipv6_gateway": "",
"mac_address": "02:42:d6:1a:e8:08",
"mac_address": "02:42:ca:8c:73:79",
"network_name": "qnet-static-eth0-48e715"
}
],
@@ -5301,9 +5435,9 @@
"cpu_shares": 0,
"destroy_grace_seconds": null,
"devices": [],
"dns": null,
"dns_opts": null,
"dns_search": null,
"dns": [],
"dns_opts": [],
"dns_search": [],
"domainname": "",
"entrypoint": [
"/app/vikunja/vikunja"
@@ -5327,8 +5461,8 @@
],
"exit_code": null,
"gpus": null,
"group_add": null,
"healthcheck": null,
"group_add": [],
"healthcheck": [],
"host": [],
"hostname": "a40b08f48c47",
"id": "a40b08f48c47f8fa31dca1275e2b30b50d4d80efdac9835c4d54dee98b6a0053",
@@ -5337,7 +5471,7 @@
"ipc_mode": "private",
"labels": [],
"log_driver": "local",
"log_opts": null,
"log_opts": {},
"logs": false,
"max_retry_count": 0,
"memory": 0,
@@ -5345,7 +5479,7 @@
"mounts": [
{
"bind_options": [],
"read_only": null,
"read_only": false,
"source": "/share/appdata/vikunja",
"target": "/files",
"tmpfs_options": [],
@@ -5391,11 +5525,17 @@
"stdin_open": false,
"stop_signal": "",
"stop_timeout": 0,
"storage_opts": null,
"sysctls": null,
"tmpfs": null,
"storage_opts": {},
"sysctls": {},
"tmpfs": {},
"tty": false,
"ulimit": [],
"ulimit": [
{
"hard": 65535,
"name": "nofile",
"soft": 65535
}
],
"upload": [],
"user": "1000",
"userns_mode": "",
@@ -5407,6 +5547,7 @@
"sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
"dependencies": [
"data.docker_registry_image.vikunja",
"docker_image.vikunja",
"docker_network.bridge"
]
@@ -5760,6 +5901,36 @@
}
]
},
{
"mode": "managed",
"type": "docker_image",
"name": "dozzle",
"provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"build": [],
"force_remove": null,
"id": "sha256:e4ecceceb99fe838ad1d8be9673f878bbe2589012bcf53080b45f808eba343ddamir20/dozzle:latest",
"image_id": "sha256:e4ecceceb99fe838ad1d8be9673f878bbe2589012bcf53080b45f808eba343dd",
"keep_locally": null,
"name": "amir20/dozzle:latest",
"platform": null,
"pull_triggers": [
"sha256:3f190215f174ef406e620af38a60f05a5e53651135aa91362df8ca8f816866e1"
],
"repo_digest": "amir20/dozzle@sha256:3f190215f174ef406e620af38a60f05a5e53651135aa91362df8ca8f816866e1",
"triggers": null
},
"sensitive_attributes": [],
"private": "bnVsbA==",
"dependencies": [
"data.docker_registry_image.dozzle"
]
}
]
},
{
"mode": "managed",
"type": "docker_image",

File diff suppressed because it is too large Load Diff