mirror of
https://github.com/luigieai/homelab.git
synced 2025-06-06 07:36:37 -03:00
46 lines
No EOL
757 B
HCL
46 lines
No EOL
757 B
HCL
job "icecast" {
|
|
datacenters = ["dc"]
|
|
type = "service"
|
|
|
|
group "icecast" {
|
|
count = 1
|
|
|
|
network {
|
|
|
|
port "icecast" {
|
|
static = 8000
|
|
to = 8000
|
|
}
|
|
}
|
|
|
|
restart {
|
|
attempts = 2
|
|
interval = "5m"
|
|
delay = "30s"
|
|
mode = "delay"
|
|
}
|
|
|
|
task "icecast" {
|
|
driver = "docker"
|
|
|
|
config {
|
|
image = "moul/icecast"
|
|
ports = ["icecast"]
|
|
}
|
|
env {
|
|
//TODO :)
|
|
#ICECAST_SOURCE_PASSWORD=""
|
|
#ICECAST_ADMIN_PASSWORD=bbbb
|
|
#ICECAST_PASSWORD=cccc
|
|
#ICECAST_RELAY_PASSWORD=dddd
|
|
}
|
|
|
|
service {
|
|
name = "icecast"
|
|
port = "icecast"
|
|
provider = "nomad"
|
|
}
|
|
}
|
|
|
|
}
|
|
} |