From afacbfa3b330dbb996aa78e5815751203ca538d0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 29 Jun 2021 15:10:55 +0000 Subject: [PATCH] add buildstack compose file --- images/buildstack.yml | 61 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 images/buildstack.yml diff --git a/images/buildstack.yml b/images/buildstack.yml new file mode 100644 index 0000000..813c4f1 --- /dev/null +++ b/images/buildstack.yml @@ -0,0 +1,61 @@ +version: "3.9" + +services: + buildboxcasd: + image: uazo/buildboxcasd + networks: + - bridge-ext + env_file: + - buildstack.env + volumes: + - /tmp/cache:/wrk-cache:rw + deploy: + mode: global + placement: + max_replicas_per_node: 1 + + buildboxrunner-8: + image: uazo/buildboxrunner + networks: + - bridge-int + depends_on: + - buildboxcasd + volumes: + - /tmp/cache:/wrk-cache:rw + deploy: + replicas: 20 + placement: + max_replicas_per_node: 8 + constraints: [node.labels.gomarunners == 8] + + buildboxrunner-4: + image: uazo/buildboxrunner + networks: + - bridge-int + depends_on: + - buildboxcasd + volumes: + - /tmp/cache:/wrk-cache:rw + deploy: + replicas: 20 + placement: + max_replicas_per_node: 4 + constraints: [node.labels.gomarunners == 4] + +networks: + bridge-int: + driver: overlay + driver_opts: + com.docker.network.bridge.name: build-bridge-int + com.docker.network.bridge.enable_icc: "false" + com.docker.network.bridge.enable_ip_masquerade: "false" + com.docker.network.bridge.default_bridge: "false" + name: build-bridge-int + internal: true + + bridge-ext: + driver: overlay + driver_opts: + com.docker.network.bridge.name: build-bridge-ext + com.docker.network.bridge.enable_icc: "false" + name: build-bridge-ext