Created
August 1, 2022 15:08
-
-
Save piotrlewandowski/881e7797d8be50f7e4ad9ed3c3078c5a to your computer and use it in GitHub Desktop.
Revisions
-
piotrlewandowski created this gist
Aug 1, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ version: "3.9" services: mongodb: image : mongo container_name: mongodb environment: - MONGO_INITDB_ROOT_USERNAME=username - MONGO_INITDB_ROOT_PASSWORD=password volumes: - .docker/mongodb/database:/data/db ports: - 27017:27017 restart: unless-stopped