Skip to content

Commit ccef7f3

Browse files
authored
Merge branch 'v1.15' into 3318-ravendb-docs
2 parents 4088858 + aebf393 commit ccef7f3

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

Lines changed: 6 additions & 8 deletions
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)