From 8a8e6cb6cea5ed31ea908af5a9d0fedb79383abc Mon Sep 17 00:00:00 2001 From: Lorenzo Venerandi <68255980+Lore09@users.noreply.github.com> Date: Sat, 14 Dec 2024 15:40:21 +0100 Subject: [PATCH] Wasmcloud host added to compose --- .../wasmcloud-edge-host/docker-compose.yaml | 23 +++++++++++++++++++ .../{nats-leaf => }/nats-leaf.conf | 0 .../nats-leaf/docker-compose.yaml | 11 --------- 3 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 infra/wasmcloud/wasmcloud-edge-host/docker-compose.yaml rename infra/wasmcloud/wasmcloud-edge-host/{nats-leaf => }/nats-leaf.conf (100%) delete mode 100644 infra/wasmcloud/wasmcloud-edge-host/nats-leaf/docker-compose.yaml diff --git a/infra/wasmcloud/wasmcloud-edge-host/docker-compose.yaml b/infra/wasmcloud/wasmcloud-edge-host/docker-compose.yaml new file mode 100644 index 0000000..2fe141f --- /dev/null +++ b/infra/wasmcloud/wasmcloud-edge-host/docker-compose.yaml @@ -0,0 +1,23 @@ +services: + nats: + image: nats:alpine + container_name: nats + restart: always + command: -c /etc/nats/nats.conf + ports: + - "4222:4222" # client port + - "8222:8222" # monitoring port + volumes: + - ./nats-leaf.conf:/etc/nats/nats.conf + + wasmcloud: + image: ghcr.io/wasmcloud/wasmcloud:1.4.0 + container_name: wasmcloud + restart: always + environment: + - WASMCLOUD_NATS_HOST=nats + - WASMCLOUD_NATS_PORT=4222 + - WASMCLOUD_RPC_TIMEOUT_MS=4000 + - WASMCLOUD_LABEL_host-type=edge + depends_on: + - nats \ No newline at end of file diff --git a/infra/wasmcloud/wasmcloud-edge-host/nats-leaf/nats-leaf.conf b/infra/wasmcloud/wasmcloud-edge-host/nats-leaf.conf similarity index 100% rename from infra/wasmcloud/wasmcloud-edge-host/nats-leaf/nats-leaf.conf rename to infra/wasmcloud/wasmcloud-edge-host/nats-leaf.conf diff --git a/infra/wasmcloud/wasmcloud-edge-host/nats-leaf/docker-compose.yaml b/infra/wasmcloud/wasmcloud-edge-host/nats-leaf/docker-compose.yaml deleted file mode 100644 index cadf159..0000000 --- a/infra/wasmcloud/wasmcloud-edge-host/nats-leaf/docker-compose.yaml +++ /dev/null @@ -1,11 +0,0 @@ -services: - nats: - image: nats:alpine - container_name: nats - restart: always - command: -c /etc/nats/nats.conf - ports: - - "4222:4222" # client port - - "8222:8222" # monitoring port - volumes: - - ./nats-leaf.conf:/etc/nats/nats.conf \ No newline at end of file