Skip to content

Commit

Permalink
refactor(examples): use new compose bin
Browse files Browse the repository at this point in the history
  • Loading branch information
alebabai committed Feb 13, 2024
1 parent d2e0c84 commit 50aa90b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

### Docker

Bootstrap full project using docker-compose:
Bootstrap full project using docker compose:

```bash
docker-compose -f <example>/docker-compose.yml up
docker compose -f <example>/compose.yml up
```

To produce an event send the following request:
Expand All @@ -38,4 +38,4 @@ To view all events send the following request:
```bash
curl -X GET http://localhost:8081/events

```
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3'
version: '3.7'

services:
zookeeper:
Expand Down Expand Up @@ -37,7 +37,7 @@ services:
- .:/app
- $GOPATH/pkg/mod:/go/pkg/mod
working_dir: /app
command: sh -c "go mod download && go run ./cmd/producer"
command: sh -c "go mod tidy && go run ./cmd/producer"
ports:
- 8080:8080

Expand All @@ -52,6 +52,6 @@ services:
- .:/app
- $GOPATH/pkg/mod:/go/pkg/mod
working_dir: /app
command: sh -c "go mod download && go run ./cmd/consumer"
command: sh -c "go mod tidy && go run ./cmd/consumer"
ports:
- 8081:8081
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3'
version: '3.7'

services:
zookeeper:
Expand Down Expand Up @@ -37,7 +37,7 @@ services:
- .:/app
- $GOPATH/pkg/mod:/go/pkg/mod
working_dir: /app
command: sh -c "go mod download && go run ./cmd/producer"
command: sh -c "go mod tidy && go run ./cmd/producer"
ports:
- 8080:8080

Expand All @@ -52,6 +52,6 @@ services:
- .:/app
- $GOPATH/pkg/mod:/go/pkg/mod
working_dir: /app
command: sh -c "go mod download && go run ./cmd/consumer"
command: sh -c "go mod tidy && go run ./cmd/consumer"
ports:
- 8081:8081

0 comments on commit 50aa90b

Please sign in to comment.