Skip to content

Commit

Permalink
Add docker compose example
Browse files Browse the repository at this point in the history
  • Loading branch information
benv666 committed Jul 30, 2024
1 parent 208071b commit 9a91a37
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
go-version: '1.22'

- name: Build
run: go build -v ./...
run: go build -v -o ecoproxy ./cmd/main.go

#- name: Test
# run: go test -v ./...
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ $ docker build -t ecoproxy:latest .
After the build is complete, you can run the CLI tool using the Docker image:

```
$ docker run --rm -e DEST_URL=<endpoint> ecoproxy:latest
$ docker run --rm -e BASE_URL=<endpoint> ecoproxy:latest
```

Anyway, above can also be done using make:
```
make build-docker docker-run
```
This repo also has an example `docker-compose.yaml` that can be used.
Works for me (tm).

### Local build

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 @@
---
services:
ecowitt:
container_name: ecoproxy
image: ecoproxy:latest
build: ./
restart: unless-stopped
ports:
- "4199:4199/tcp"
environment:
PROXY_PORT: "4199"
BASE_URL: "https://my.homeassistant.io"

0 comments on commit 9a91a37

Please sign in to comment.