Skip to content

Commit

Permalink
feat: set up Docker volume
Browse files Browse the repository at this point in the history
  • Loading branch information
samderanova committed Dec 12, 2023
1 parent 25c0454 commit ba025ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/api/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- mongodb_data_volume:/data/db

mongo-express:
image: mongo-express
Expand All @@ -25,3 +27,6 @@ services:
- "8000:8000"
environment:
MONGODB_URI: mongodb://root:example@mongo:27017

volumes:
mongodb_data_volume:

0 comments on commit ba025ec

Please sign in to comment.