Docker Compose V2 changes (#24177)

This commit is contained in:
kerta1n 2022-09-19 09:52:46 -04:00 committed by GitHub
parent dfcd2c6189
commit 7f4ab79782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ If you change the configuration you have to restart the server. To do that you h
content: | content: |
```bash ```bash
docker-compose restart docker compose restart
``` ```
{% endtabbed_block %} {% endtabbed_block %}
@ -59,19 +59,19 @@ If you change the configuration you have to restart the server. To do that you h
### Docker Compose ### Docker Compose
<div class="note tip"> <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> </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 %} {% include installation/container/compose.md %}
Start it by running: Start it by running:
```bash ```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. 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.