From 2523adf5b380b974807d0e272e50488423291f92 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 25 Mar 2025 16:44:21 -0400 Subject: [PATCH 1/3] Update self-hosted-with-docker.md - make scheduler running Signed-off-by: Mathieu Benoit --- .../hosting/self-hosted/self-hosted-with-docker.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md b/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md index 700acc7767e..38ca74720fd 100644 --- a/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md +++ b/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md @@ -141,15 +141,12 @@ services: scheduler: image: "daprio/dapr" - command: ["./scheduler", "--port", "50007"] + command: ["./scheduler", "--port", "50007", "--etcd-data-dir", "/data"] ports: - "50007:50007" - # WARNING - This is a tmpfs volume, your state will not be persisted across restarts + user: root volumes: - - type: tmpfs - target: /data - tmpfs: - size: "64m" + - "./dapr-etcd-data/:/data" networks: hello-dapr: null From 5e002648eb4ea9178b944855b8c5bc6edf03677e Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 25 Mar 2025 17:15:07 -0400 Subject: [PATCH 2/3] Update self-hosted-with-docker.md - --scheduler-host-address Signed-off-by: Mathieu Benoit --- .../en/operations/hosting/self-hosted/self-hosted-with-docker.md | 1 + 1 file changed, 1 insertion(+) diff --git a/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md b/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md index 38ca74720fd..5149e6ff017 100644 --- a/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md +++ b/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md @@ -123,6 +123,7 @@ services: "--app-id", "nodeapp", "--app-port", "3000", "--placement-host-address", "placement:50006", # Dapr's placement service can be reach via the docker DNS entry + "--scheduler-host-address", "scheduler:50007", # Dapr's scheduler service can be reach via the docker DNS entry "--resources-path", "./components" ] volumes: From f47524f8b8a14ff9efc06f173e158ce1e083fe88 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 25 Mar 2025 17:16:22 -0400 Subject: [PATCH 3/3] Update self-hosted-with-docker.md - Use smaller container images for placement and scheduler Signed-off-by: Mathieu Benoit --- .../operations/hosting/self-hosted/self-hosted-with-docker.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md b/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md index 5149e6ff017..7aa42196f71 100644 --- a/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md +++ b/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md @@ -135,13 +135,13 @@ services: ... # Deploy other daprized services and components (i.e. Redis) placement: - image: "daprio/dapr" + image: "daprio/placement" command: ["./placement", "--port", "50006"] ports: - "50006:50006" scheduler: - image: "daprio/dapr" + image: "daprio/scheduler" command: ["./scheduler", "--port", "50007", "--etcd-data-dir", "/data"] ports: - "50007:50007"