| 1 | amends "../../config/Service.pkl" |
| 2 | |
| 3 | import "../../config/site.pkl" as site |
| 4 | |
| 5 | name = "Zig mirror" |
| 6 | launcher = false |
| 7 | stageIsolation = "fresh" |
| 8 | |
| 9 | container { |
| 10 | build = "build" |
| 11 | readOnlyRoot = true |
| 12 | capAdd { "FOWNER" } |
| 13 | http { |
| 14 | containerPort = 8080 |
| 15 | subdomain = "zig" |
| 16 | checkPath = "/health" |
| 17 | } |
| 18 | volumes { |
| 19 | ["/mirror"] { src = if (site.preview) null else "\(site.mediaRoot)/Software/Public/zig" } |
| 20 | } |
| 21 | env { |
| 22 | ["ZIG_MIRROR_ROOT"] = "/mirror" |
| 23 | ["ZIG_MIRROR_REFRESH"] = if (site.preview) "0" else "21600" |
| 24 | } |
| 25 | } |