Full docs are here: https://docs.docker.com/compose/reference/overview/
Generally the idea of `docker-compose` command is simple:
1. First you create a folder for your service, e.g. `home-assistant`
2. Then you then create a `docker-compose.yml` file, which describes the service containers
3. You run `docker-compose up -d` and you're done!
Here are the most frequently used commands:
#### Start a container
`-d` starts in a detached mode - which basically mean that it runs it in the background (so you can do other stuff, instead of looking at the logs).
```sh
docker-compose up -d
```
### Stop a container
There are 2 options:
```sh
docker-compose stop
docker-compose down
```
First one (`stop`) onlu stops the containers, whereas the latter (`down`) does some more cleaning (removes the containers, networks, volumes), so I generally recommend `down` if you're tinkering.
### Update a container to use the latest published image
```sh
docker-compose pull && docker-compose up -d
```
This pulls the latest images as defined in the local `docker-compose.yml` and recreates the containers.