mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Docker Compose V2 changes (#24177)
This commit is contained in:
parent
dfcd2c6189
commit
7f4ab79782
@ -51,7 +51,7 @@ If you change the configuration you have to restart the server. To do that you h
|
||||
content: |
|
||||
|
||||
```bash
|
||||
docker-compose restart
|
||||
docker compose restart
|
||||
```
|
||||
|
||||
{% endtabbed_block %}
|
||||
@ -59,19 +59,19 @@ If you change the configuration you have to restart the server. To do that you h
|
||||
### Docker Compose
|
||||
|
||||
<div class="note tip">
|
||||
|
||||
In order to use `docker-compose` you first need to [install `docker-compose`](https://docs.docker.com/compose/install/) on your system.
|
||||
|
||||
`docker compose` should [already be installed](https://www.docker.com/blog/announcing-compose-v2-general-availability/) on your system. If not, you can [manually](https://docs.docker.com/compose/install/linux/) install it.
|
||||
|
||||
</div>
|
||||
|
||||
As the Docker command becomes more complex, switching to `docker-compose` can be preferable and support automatically restarting on failure or system restart. Create a `docker-compose.yml` file:
|
||||
As the Docker command becomes more complex, switching to `docker compose` can be preferable and support automatically restarting on failure or system restart. Create a `compose.yml` file:
|
||||
|
||||
{% include installation/container/compose.md %}
|
||||
|
||||
Start it by running:
|
||||
|
||||
```bash
|
||||
docker-compose up -d
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Once the Home Assistant Container is running Home Assistant should be accessible using `http://<host>:8123` (replace <host> with the hostname or IP of the system). You can continue with onboarding.
|
||||
|
Loading…
x
Reference in New Issue
Block a user