Skip to content

Commit

Permalink
Docker compose example (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolbi authored Jan 29, 2025
1 parent 1a1b8c6 commit 949bf47
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ This project emulates Smart Meter devices for Marstek storages such as the B2500
pipenv run python main.py
```

### Docker

See the `docker_compose.yaml` example.

### Additional Notes

When the script is running, switch your B2500 to "Self-Adaptation" mode to enable the powermeter functionality.
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3'

services:
b2500-meter:
image: ghcr.io/tomquist/b2500-meter:latest
network_mode: host
restart: unless-stopped
volumes:
- './config.ini:/app/config.ini'

0 comments on commit 949bf47

Please sign in to comment.