Add MongoDB to docker-compose.yml
A MongoDB service has been added to the docker-compose file. The configuration includes port mapping and volume mapping for MongoDB data storage. This allows more flexibility in our environment setup with MongoDB now being spun up automatically.
This commit is contained in:
parent
c555aaa802
commit
47bdfc96eb
|
|
@ -13,6 +13,13 @@ services:
|
|||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
mongodb:
|
||||
image: mongo:latest
|
||||
ports:
|
||||
- "127.0.0.1:27017:27017"
|
||||
volumes:
|
||||
- mongodb_data:/data/db
|
||||
|
||||
cockroachdb:
|
||||
image: cockroachdb/cockroach:v22.1.0
|
||||
command: start-single-node --insecure
|
||||
|
|
@ -67,3 +74,4 @@ services:
|
|||
volumes:
|
||||
postgres-data:
|
||||
cockroachdb-data:
|
||||
mongodb_data:
|
||||
|
|
|
|||
Loading…
Reference in a new issue