Explorar o código

feature/adding_docker-compose_example (#173)

* Fixing docker documentation in README.md. Adding docker-compose.md to the documentation

* Fixing docker documentation in README.md. Adding docker-compose.md to the documentation

* Typo fix

Co-authored-by: andormarkus <andormarkus@marc-o-polo.com>
Andor Markus %!s(int64=4) %!d(string=hai) anos
pai
achega
c49006d2c1
Modificáronse 2 ficheiros con 29 adicións e 0 borrados
  1. 4 0
      README.md
  2. 25 0
      docker-compose.md

+ 4 - 0
README.md

@@ -41,6 +41,10 @@ docker run -p 8080:8080
 ```
 Then access the web UI at [http://localhost:8080](http://localhost:8080).
  
+### Docker Compose
+
+If you prefer to use `docker-compose` please refer to the [documentation](docker-compose.md).
+
 
 ## Building With Docker
 

+ 25 - 0
docker-compose.md

@@ -0,0 +1,25 @@
+# Quick Start with docker-compose
+
+* Add a new service in docker-compose.yml
+
+```yaml
+version: '2'
+services:
+  kafka-ui:
+    image: provectuslabs/kafka-ui
+    container_name: kafka-ui
+    ports:
+      - "9000:8080"
+    restart: always
+    environment:
+      -e KAFKA_CLUSTERS_0_NAME=local
+      -e KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092
+      -e KAFKA_CLUSTERS_0_ZOOKEEPER=localhost:2181
+```
+   
+  
+* Start Kafka UI process
+
+```bash
+docker-compose up -d kafka-ui
+```