diff options
author | Raphael <raphaelkabo@gmail.com> | 2020-11-05 10:33:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 10:33:58 +0000 |
commit | 050701f4af059f3c93bee3a973028e7e3ba3b16b (patch) | |
tree | b8e8e4bfe6cbfbf8c79b253c7803c1eeef2b4008 /docker-compose.yml | |
parent | 6eae89562c56aa5d2b6fcd8435c2f85089b316b0 (diff) | |
parent | b514609f4fa319491d1956205d98012b5fc59d9d (diff) |
Merge pull request #53 from marklechtermann/volume
Added docker volume support for MongoDB
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index d16e279..44026c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,8 @@ version: '3' + +volumes: + mongodb_data_db: + services: gathio: build: . @@ -7,4 +11,6 @@ services: ports: - 3000:3000 mongo: - image: mongo:latest
\ No newline at end of file + image: mongo:latest + volumes: + - mongodb_data_db:/data/db
\ No newline at end of file |