Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sabrydawood/docker-basic


https://github.com/sabrydawood/docker-basic

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Getting Started docker basic
```console
docker ps
docker images

docker rm
docker build -t .

# link folder to container (windowns : "%cd%" Linux : $(pwd))
docker run --name -v "%cd%"//:// -p : -d
docker run --name -p :

docker stack ls
docker statck rm
docker stack deploy -c docker-stack.yml

docker service ls
docker service update --force

docker-compose up -d --build
docker-compose down
```
### `express`
```js
cd express
docker-compose up -d --build

Open [http://localhost:8000] to view it in the browser.
```

### `nginx`
```js
cd nginx
docker-compose up -d

Open [http://localhost] to view it in the browser.
```
### `redis`
```js
cd redis
docker-compose up -d

Connection to redis
HOST = localhost
PORT = 6379
PASSWORD = password1
```
### `mysql`
```js
cd mysql
docker-compose up -d

Connection to mysql
HOST = localhost
PORT = 3306
USER = root
PASSWORD = password1
```
### `postgres`
```js
cd postgres
docker-compose up -d

Connection to postgres
HOST = localhost
PORT = 5432
USER = root
PASSWORD = password1
```