Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/etiennetremel/docker-compose-full-stack-demo
- Owner: etiennetremel
- Created: 2016-01-31T10:23:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-31T10:30:43.000Z (almost 9 years ago)
- Last Synced: 2023-03-23T02:02:19.998Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).