Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sjdonado/docker-mern
Mongo-Express-React app routed by nginx
https://github.com/sjdonado/docker-mern
Last synced: about 4 hours ago
JSON representation
Mongo-Express-React app routed by nginx
- Host: GitHub
- URL: https://github.com/sjdonado/docker-mern
- Owner: sjdonado
- License: mit
- Created: 2019-08-23T18:39:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T09:11:35.000Z (over 3 years ago)
- Last Synced: 2023-03-11T14:57:14.339Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 349 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Development environment
* Run
```
docker-compose up
```
* Run commands
```
docker-compose run --rm CONTAINER_NAME COMMAND
```
* Connect to mongo database outside docker network:
```
mongodb://user:user_12345@localhost:27017/database_example
```## Production environment
* Build
```
docker build -t sjdonado/docker-ci-api --build-arg var_name=${VARIABLE_NAME} (...) ./api
docker build -t sjdonado/docker-ci-nginx --build-arg var_name=${VARIABLE_NAME} (...) ./nginx
```
* Run
```
docker run -d sjdonado/docker-ci-api
docker run -d sjdonado/docker-ci-nginx
```