Skip to content

Commit aebf393

Browse files
Update self-hosted-with-docker.md - make scheduler running (#4599)
* Update self-hosted-with-docker.md - make scheduler running Signed-off-by: Mathieu Benoit <[email protected]> * Update self-hosted-with-docker.md - --scheduler-host-address Signed-off-by: Mathieu Benoit <[email protected]> * Update self-hosted-with-docker.md - Use smaller container images for placement and scheduler Signed-off-by: Mathieu Benoit <[email protected]> --------- Signed-off-by: Mathieu Benoit <[email protected]>
1 parent 8a29b39 commit aebf393

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ services:
123123
"--app-id", "nodeapp",
124124
"--app-port", "3000",
125125
"--placement-host-address", "placement:50006", # Dapr's placement service can be reach via the docker DNS entry
126+
"--scheduler-host-address", "scheduler:50007", # Dapr's scheduler service can be reach via the docker DNS entry
126127
"--resources-path", "./components"
127128
]
128129
volumes:
@@ -134,22 +135,19 @@ services:
134135
... # Deploy other daprized services and components (i.e. Redis)
135136

136137
placement:
137-
image: "daprio/dapr"
138+
image: "daprio/placement"
138139
command: ["./placement", "--port", "50006"]
139140
ports:
140141
- "50006:50006"
141142

142143
scheduler:
143-
image: "daprio/dapr"
144-
command: ["./scheduler", "--port", "50007"]
144+
image: "daprio/scheduler"
145+
command: ["./scheduler", "--port", "50007", "--etcd-data-dir", "/data"]
145146
ports:
146147
- "50007:50007"
147-
# WARNING - This is a tmpfs volume, your state will not be persisted across restarts
148+
user: root
148149
volumes:
149-
- type: tmpfs
150-
target: /data
151-
tmpfs:
152-
size: "64m"
150+
- "./dapr-etcd-data/:/data"
153151

154152
networks:
155153
hello-dapr: null

0 commit comments

Comments
 (0)