job "woodpecker-ci" { datacenters = ["neptune", "scorpio"] type = "service" # prefer scorpio as neptune has bad ipv6 routes to git.deuxfleurs.fr affinity { attribute = "${node.datacenter}" value = "scorpio" } group "server" { count = 1 network { port "web_port" { static = 14080 to = 14080 } port "grpc_port" { static = 14090 to = 14090 } port "grpc_tls_port" { static = 14453 to = 14453 } } task "server" { driver = "docker" config { image = "woodpeckerci/woodpecker-server:v2.3.0" ports = [ "web_port", "grpc_port" ] network_mode = "host" } template { data = <