Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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
```