This repository contains a minimal MERN (MongoDB, Express, React, Node) example wired up for Docker Compose.
How to run
- From the project root run:
docker compose up --build- The client will be served at http://localhost:3000 and the server API at http://localhost:5000/api
Notes
- The server connects to MongoDB using the
MONGO_URIenv var. docker-compose sets this to themongoservice. - To develop locally without Docker, run
npm installinserverandclientand use thedevscripts.