version: "3.9" services: kafka-pipe: image: openjdk:11-jre-buster container_name: "kafka-pipe" build: dockerfile: "kafka-pipe.Dockerfile" context: "." restart: "unless-stopped" privileged: true networks: - "kafkatorio-nw" environment: FACTORIO_SERVER_CONTAINER_NAME: "factorio-server" KAFKA_HOST: "kafka:29092" volumes: # Windows (requires privileged/root) - "//var/run/docker.sock:/var/run/docker.sock" # Unix? # - "/var/run/docker.sock:/var/run/docker.sock" networks: kafkatorio-nw: name: "kafkatorio-nw" external: true