Initial commit

This commit is contained in:
Marc Fokkert
2023-07-26 21:01:51 +02:00
commit e357babf6d
52 changed files with 1681 additions and 0 deletions

31
ofelia.tf Normal file
View File

@@ -0,0 +1,31 @@
## Job scheduler for ofelia
resource "docker_image" "ofelia" {
name = "mcuadros/ofelia:latest"
}
resource "docker_container" "ofelia" {
image = docker_image.ofelia.latest
name = "ofelia"
restart = "always"
mounts {
target = "/var/run/docker.sock"
source = "/var/run/docker.sock"
type = "bind"
read_only = true
}
mounts {
target = "/etc/ofelia"
source = "/share/appdata/ofelia"
type = "bind"
}
lifecycle {
ignore_changes = [
ulimit,
log_opts
]
}
}