This development container uses Docker Compose to provide a ready-to-use environment for C# 9 development with MongoDB and Elasticsearch.
- .NET 6 SDK (C# 9 compatible)
- MongoDB 6
- Elasticsearch 7.17
- VS Code extensions for C#, MongoDB, and Docker
- Open this folder in VS Code.
- Reopen in Container when prompted.
- The app service is available for development in
/workspace. - MongoDB is accessible at
mongodb://mongodb:27017. - Elasticsearch is accessible at
http://elasticsearch:9200.
MONGODB_CONNECTION_STRING: MongoDB connection stringELASTICSEARCH_URL: Elasticsearch connection string
- 5000, 5001: App
- 27017: MongoDB
- 9200, 9300: Elasticsearch