Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/loconluis/docker-node-redis-simpleapp


https://github.com/loconluis/docker-node-redis-simpleapp

Last synced: 16 days ago
JSON representation

Awesome Lists containing this project

README

        

# Docker

To maintain multiple container use docker-compose. They will connected trought a default network

#### Up
1. - `$ docker-compose up`
1. - `$ docker-compose up -d` // with background up

#### Down
1. - `$ docker-compose down`
Stop a removing all the containers.

#### Restart Vocabulary
1. - "no" >> Never restar a container was failed.
1. - always >> Restar a container, not matter what has failed.
1. - on-failure >> Only restart if a container stop for an error code.
1. - unless-stopped >> Always restart unless we forcibly stop it.

Running `$ docker ps` when a compose was exec. Doesnt not work, only in the directory was that compose exists.