最後更新: 2019-01-17


docker-compose 用來一次過動幾隻互有關聯的 Docker


Start/Stop with docker reverse proxy


* Start

docker-compose -f proxy.yml up -d

-d, --detach               Detached mode: Run containers in the background, print new container names.

* Stop

docker-compose -f proxy.yml stop

Stops running containers without removing them. They can be started again with docker-compose start.

* up

Builds, (re)creates, starts, and attaches to containers for a service.

* down

Stops containers and removes containers, networks, volumes, and images created by up.

Networks and volumes defined as external are never removed.