kafka pipe working!!!!!!!!!!!!!!!!!

lots of experiments too - to be deleted
This commit is contained in:
Adam 2021-10-23 22:44:20 +02:00
parent 1c9f415d01
commit 26626263d3
13 changed files with 506 additions and 7 deletions

View file

@ -0,0 +1,54 @@
version: "3.9"
services:
kp2:
image: openjdk:11-jre-buster
container_name: "factorio-events-kafka-pipe"
build:
dockerfile: "kafka-pipe.Dockerfile"
networks:
- "factorio-events-nw"
environment:
FACTORIO_SERVER_CONTAINER_NAME: "factorio-server"
KAFKA_HOST: "kafka:29092"
volumes:
# Unix and Windows?
# - "//./pipe/docker_engine:/var/run/docker.sock"
# - "//./pipe/docker_engine:/pipe/docker_engine"
- "//var/run/docker.sock:/var/run/docker.sock"
# - "/var/run/docker.sock:/var/run/docker.sock"
# Windows?
# - "\\.\\pipe\\docker_engine:\\.\\pipe\\docker_engine"
# Windows?
# - "/usr/local/bin/docker:/usr/bin/docker"
# kp3:
# image: edenhill/kcat:1.7.0
# container_name: kafka-pipe3
# networks:
# - "factorio-events-nw"
# volumes:
# - "./kafka-pipe.sh:/kafka-pipe.sh"
# entrypoint:
# # - "ls"
# # - "-la"
# # - "&&"
# - "/bin/sh"
# - "./kafka-pipe.sh"
# - "factorio-server"
# - "kafka-kraft"
###
# volumes:
# - "./build/libs/:/app"
# command:
# - "java"
# - "-jar"
# - "/app/pipe-docker-logs-to-kafka-0.0.2.jar"
networks:
factorio-events-nw:
name: "factorio-events-nw"
external: true