Skip to content

Commit df19c2a

Browse files
authored
(DOCSP-45098) Updates localdev Docker compose example. (#760) (#776)
1 parent 86aa381 commit df19c2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/atlas-cli-deploy-docker.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,10 @@ of Docker Compose.
281281

282282
.. code-block:: sh
283283
:linenos:
284-
284+
285285
services:
286286
mongodb:
287+
hostname: mongodb
287288
image: mongodb/mongodb-atlas-local
288289
environment:
289290
- MONGODB_INITDB_ROOT_USERNAME=user
@@ -292,8 +293,10 @@ of Docker Compose.
292293
- 27019:27017
293294
volumes:
294295
- data:/data/db
296+
- config:/data/configdb
295297
volumes:
296298
data:
299+
config:
297300

298301
.. step:: Run Docker Compose.
299302

0 commit comments

Comments
 (0)