Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Nov 21, 2023
1 parent eca434b commit 0625f43
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,9 @@ Homebridge requires full access to your local network to function correctly whic

## Usage

Command Line:
### Using [Docker Compose](https://docs.docker.com/compose/) (recommended):

```bash
docker run --net=host --name=homebridge -v $(pwd)/homebridge:/homebridge homebridge/homebridge:latest
```

Using [Docker Compose](https://docs.docker.com/compose/) (recommended):
1. Create the file `docker-compose.yml`

```yml
version: '2'
Expand All @@ -52,8 +48,26 @@ services:
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
max-size: '10m'
max-file: '1'
healthcheck:
test: curl --fail localhost:8581 || exit 1
interval: 60s
retries: 5
start_period: 300s
timeout: 2s
```
2. Start docker with
```bash
docker compose up
```

### Or Command Line:

```bash
docker run --net=host --name=homebridge -v $(pwd)/homebridge:/homebridge homebridge/homebridge:latest
```

## Parameters
Expand Down

0 comments on commit 0625f43

Please sign in to comment.