Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/etiennetremel/docker-compose-full-stack-demo

3 micro-services: NodeJS APP + NodeJS API + MongoDB
https://github.com/etiennetremel/docker-compose-full-stack-demo

Last synced: about 19 hours ago
JSON representation

3 micro-services: NodeJS APP + NodeJS API + MongoDB

Awesome Lists containing this project

README

        

Docker compose: full stack demo
===============================

Docker compose can be used to setup the following infrastucture:

```
Client
Browser
+
|
+----v-----+ +----------+ +----------+
| APP +--------> API +--------> DATABASE |
| NodeJS <--------+ NodeJS <--------+ MongoDB |
+----------+ +----------+ +----------+
```

### Getting started

Make sure you have Docker installed.

If needed, change the MongoDB path from the docker-compose.yaml to the correct location ```/usr/share/mongodb/db```. You could also create an artifact volume to host it in a Docker container, see Docker documentation "[Creating and mounting a data volume container](https://docs.docker.com/engine/userguide/dockervolumes/)".

```bash
docker-compose up
```

Access [http://localhost:3000](http://localhost:3000).