Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sabrydawood/docker-basic
https://github.com/sabrydawood/docker-basic
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sabrydawood/docker-basic
- Owner: sabrydawood
- Created: 2024-01-29T18:11:11.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-29T18:11:19.000Z (11 months ago)
- Last Synced: 2024-04-13T08:36:08.328Z (9 months ago)
- Language: Dockerfile
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Started docker basic
```console
docker ps
docker imagesdocker 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.ymldocker service ls
docker service update --forcedocker-compose up -d --build
docker-compose down
```
### `express`
```js
cd express
docker-compose up -d --buildOpen [http://localhost:8000] to view it in the browser.
```### `nginx`
```js
cd nginx
docker-compose up -dOpen [http://localhost] to view it in the browser.
```
### `redis`
```js
cd redis
docker-compose up -dConnection to redis
HOST = localhost
PORT = 6379
PASSWORD = password1
```
### `mysql`
```js
cd mysql
docker-compose up -dConnection to mysql
HOST = localhost
PORT = 3306
USER = root
PASSWORD = password1
```
### `postgres`
```js
cd postgres
docker-compose up -dConnection to postgres
HOST = localhost
PORT = 5432
USER = root
PASSWORD = password1
```