Skip to content

Commit

Permalink
Added docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
ha-enthus1ast committed Dec 12, 2023
1 parent 8a140bc commit 925d982
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ A simple mqtt gateway to connect your plejd devices to an MQTT broker and Home A
- [Setting Up and Running as a Docker Container](#setting-up-and-running-as-a-docker-container)
- [Building the Docker Image](#building-the-docker-image)
- [Running the Docker Container](#running-the-docker-container)
- [Running with Docker Compose](#running-with-docker-compose)
- [Configuration](#configuration)
- [General](#general)
- [API](#api)
Expand Down Expand Up @@ -113,6 +114,18 @@ docker run -v ./config/:/config/ --rm --net=host --privileged -it plejd

This command starts a new Docker container from the plejd image. The program inside the container will start running immediately.

#### Running with Docker Compose

As an alternative to the `docker run` command, you can use Docker Compose to manage your application.

To start the application with Docker Compose, run:

```bash
docker-compose up
```

This command will start a new Docker container from the plejd image, just like the docker run command. The program inside the container will start running immediately.

## Configuration

Configuration of the application. See example configuration [here](#example).
Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# A basic docker compose file for running the current version of plejd-mqtt-ha

version: "3.8"
services:
plejd:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./config/:/config/
network_mode: host
privileged: true

0 comments on commit 925d982

Please sign in to comment.