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:
Sipke Schoorstra 2024-04-01 22:07:49 +02:00
parent c555aaa802
commit 47bdfc96eb

View file

@ -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: