WIP barcode buddy and webhook
This commit is contained in:
39
barcode_buddy.tf
Normal file
39
barcode_buddy.tf
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
data "docker_registry_image" "barcode_buddy" {
|
||||
name = "f0rc3/barcodebuddy:latest"
|
||||
}
|
||||
|
||||
resource "docker_image" "barcode_buddy" {
|
||||
name = data.docker_registry_image.barcode_buddy.name
|
||||
pull_triggers = [data.docker_registry_image.barcode_buddy.sha256_digest]
|
||||
}
|
||||
|
||||
|
||||
resource "docker_container" "barcode_buddy" {
|
||||
image = docker_image.barcode_buddy.image_id
|
||||
name = "barcode_buddy"
|
||||
restart = "always"
|
||||
|
||||
env = [
|
||||
"TZ=Europe/Amsterdam"
|
||||
]
|
||||
|
||||
mounts {
|
||||
target = "/config"
|
||||
source = "/share/appdata/barcode-buddy"
|
||||
type = "bind"
|
||||
}
|
||||
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
ulimit,
|
||||
log_opts
|
||||
]
|
||||
}
|
||||
|
||||
networks_advanced {
|
||||
name = docker_network.bridge.name
|
||||
ipv4_address = "192.168.2.150"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user