-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d5f3a1
commit ab37dca
Showing
6 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
KREST_APP_ENV=development | ||
KREST_APP_NAME=kafkarest | ||
KREST_APP_PORT=8888 | ||
PORT=8888 | ||
|
||
# Kafka Config | ||
KREST_KAFKA_HOST=localhost:9092 | ||
KAFKA_HOST=localhost:9092 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
KREST_APP_ENV=test | ||
KREST_APP_NAME=kafkarest | ||
KREST_APP_PORT=8889 | ||
PORT=8889 | ||
|
||
# Kafka Config | ||
KREST_KAFKA_HOST=localhost:9092 | ||
KAFKA_HOST=localhost:9092 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
dev: ## Run the app in development mode | ||
APP_ENV=development go run cmd/api/main.go | ||
.PHONY: dev | ||
.PHONY: dev | ||
|
||
up: | ||
@docker-compose up --build -d | ||
.PHONY: up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3' | ||
|
||
services: | ||
kafka-rest: | ||
container_name: kafka-rest | ||
image: mauricioromagnollo/kafka-rest:latest | ||
ports: | ||
- "8080:8080" | ||
environment: | ||
- KAFKA_HOST=kafka:29092 | ||
|
||
# kafka-rest-test: | ||
# container_name: kafka-rest-test | ||
# build: | ||
# context: . | ||
# dockerfile: Dockerfile | ||
# ports: | ||
# - "8082:8080" | ||
# volumes: | ||
# - .:/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,7 @@ POST http://localhost:8888/publish | |
"message": { | ||
"foo": "bar" | ||
} | ||
} | ||
} | ||
|
||
### | ||
GET http://localhost:8082/status |