Compare commits
2 Commits
9fd1307759
...
9229c490b8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9229c490b8 | ||
|
|
e2d36a8674 |
49
core-os-podman/looksyk.tf
Normal file
49
core-os-podman/looksyk.tf
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
data "docker_registry_image" "looksyk" {
|
||||||
|
name = "sebastianrzk/looksyk"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "docker_image" "looksyk" {
|
||||||
|
name = data.docker_registry_image.looksyk.name
|
||||||
|
pull_triggers = [data.docker_registry_image.looksyk.sha256_digest]
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "docker_container" "looksyk" {
|
||||||
|
image = docker_image.looksyk.image_id
|
||||||
|
name = "looksyk"
|
||||||
|
restart = "always"
|
||||||
|
|
||||||
|
log_driver = "local"
|
||||||
|
|
||||||
|
user = "root:root"
|
||||||
|
|
||||||
|
networks_advanced {
|
||||||
|
name = docker_network.container-public.name
|
||||||
|
ipv4_address = "192.168.3.57"
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
target = "/graph"
|
||||||
|
source = "/var/lib/containers/looksyk/graph"
|
||||||
|
type = "bind"
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
target = "/root/.ssh/id_rsa"
|
||||||
|
source = "/var/lib/containers/looksyk/ssh/id_rsa"
|
||||||
|
type = "bind"
|
||||||
|
read_only = true
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
target = "/root/.ssh/known_hosts"
|
||||||
|
source = "/var/lib/containers/looksyk/ssh/known_hosts"
|
||||||
|
type = "bind"
|
||||||
|
}
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [
|
||||||
|
ulimit,
|
||||||
|
log_opts
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user