From cad5eb4a3d45285e32ecf9feb4587c64989818c5 Mon Sep 17 00:00:00 2001 From: Nguyen Tran Hau Date: Mon, 13 Jul 2020 14:27:08 +0700 Subject: [PATCH] docker compose --- src/Development/Docker.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/Development/Docker.md b/src/Development/Docker.md index 5bfab53..5c98882 100644 --- a/src/Development/Docker.md +++ b/src/Development/Docker.md @@ -39,3 +39,26 @@ Docker run options: | `--rm` | | Remove container when exit | | `--tty`, `-t` | | Allocate a pseudo-TTY | | `--volume`, `-v` | `-v "$(pwd)"/data:/data` | Bind host directory:container directory | + +## Docker Compose + +Update images: + +```sh +docker-compose pull +``` + +Start: + +```sh +docker-compose up + +# Detach +docker-compose up -d +``` + +Stops: + +```sh +docker-compose down +```