Update self-hosted-with-docker.md - make `scheduler` running (#4599)

* Update self-hosted-with-docker.md - make scheduler running

Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>

* Update self-hosted-with-docker.md - --scheduler-host-address

Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>

* Update self-hosted-with-docker.md - Use smaller container images for placement and scheduler

Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>

---------

Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
This commit is contained in:
Mathieu Benoit 2025-03-25 18:28:23 -04:00 committed by GitHub
parent 8a29b3936a
commit aebf393b2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 8 deletions

View File

@ -123,6 +123,7 @@ services:
"--app-id", "nodeapp", "--app-id", "nodeapp",
"--app-port", "3000", "--app-port", "3000",
"--placement-host-address", "placement:50006", # Dapr's placement service can be reach via the docker DNS entry "--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" "--resources-path", "./components"
] ]
volumes: volumes:
@ -134,22 +135,19 @@ services:
... # Deploy other daprized services and components (i.e. Redis) ... # Deploy other daprized services and components (i.e. Redis)
placement: placement:
image: "daprio/dapr" image: "daprio/placement"
command: ["./placement", "--port", "50006"] command: ["./placement", "--port", "50006"]
ports: ports:
- "50006:50006" - "50006:50006"
scheduler: scheduler:
image: "daprio/dapr" image: "daprio/scheduler"
command: ["./scheduler", "--port", "50007"] command: ["./scheduler", "--port", "50007", "--etcd-data-dir", "/data"]
ports: ports:
- "50007:50007" - "50007:50007"
# WARNING - This is a tmpfs volume, your state will not be persisted across restarts user: root
volumes: volumes:
- type: tmpfs - "./dapr-etcd-data/:/data"
target: /data
tmpfs:
size: "64m"
networks: networks:
hello-dapr: null hello-dapr: null