mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Update docker compose examples (#4816)
The docker compose examples have you create a service called 'web', which will create web_1 docker container. Other references within the documents say to run `docker restart home-assistant`, yet this docker container does not exist when using the docker compose examples. Updated compose so they will have a standard name for the container that is created.
This commit is contained in:
parent
f50be7c5e8
commit
5cd3526d56
@ -92,7 +92,8 @@ As the docker command becomes more complex, switching to `docker-compose` can be
|
||||
```yaml
|
||||
version: '3'
|
||||
services:
|
||||
web:
|
||||
homeassistant:
|
||||
container_name: home-assistant
|
||||
image: homeassistant/home-assistant
|
||||
volumes:
|
||||
- /path/to/your/config:/config
|
||||
@ -120,7 +121,8 @@ or in a `docker-compose.yml` file:
|
||||
```yaml
|
||||
version: '3'
|
||||
services:
|
||||
web:
|
||||
homeassistant:
|
||||
container_name: home-assistant
|
||||
image: homeassistant/home-assistant
|
||||
volumes:
|
||||
- /path/to/your/config:/config
|
||||
|
Loading…
x
Reference in New Issue
Block a user