Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions docker-compose-mini-runtime-data-ingestion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
version: '2.1'

services:
zoo1:
image: confluentinc/cp-zookeeper:6.2.1
restart: always
hostname: zoo1
user: "0"
volumes:
- ./data-zoo-data:/var/lib/zookeeper/data
- ./data-zoo-logs:/var/lib/zookeeper/log
- ./data-zoo-secrets:/etc/zookeeper/secrets
container_name: zoo1
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_SERVERS: zoo1:2888:3888
labels:
com.centurylinklabs.watchtower.enable: "false"

kafka1:
image: confluentinc/cp-kafka:6.2.1
restart: always
hostname: kafka1
user: "0"
ports:
- "9092:9092"
- "19092:19092"
- "29092:29092"
- "9999:9999"
environment:
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_EXTERNAL_DIFFHOST://${AKTO_KAFKA_IP}:9092, LISTENER_DOCKER_INTERNAL://kafka1:19092,LISTENER_DOCKER_EXTERNAL_LOCALHOST://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_EXTERNAL_DIFFHOST:PLAINTEXT, LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL_LOCALHOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER_INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zoo1:2181"
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_CREATE_TOPICS: "akto.api.logs:3:3"
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 60000
KAFKA_LOG_RETENTION_HOURS: 5
KAFKA_LOG_SEGMENT_BYTES: 104857600
KAFKA_LOG_CLEANER_ENABLE: "true"
KAFKA_CLEANUP_POLICY: "delete"
KAFKA_LOG_RETENTION_BYTES: 10737418240
volumes:
- ./data-kafka-data:/var/lib/kafka/data
- ./data-kafka-secrets:/etc/kafka/secrets
depends_on:
- zoo1
labels:
com.centurylinklabs.watchtower.enable: "false"

akto-api-security-runtime:
image: public.ecr.aws/aktosecurity/akto-api-security-mini-runtime:testruntime
env_file: ./docker-mini-runtime.env
mem_limit: 8g
restart: always
depends_on:
- kafka1
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "2"

data-ingestion-service:
image: aktosecurity/data-ingestion-service:latest
env_file: ./data-ingestion-docker.env
restart: always
ports:
- "9091:8080"
depends_on:
- kafka1

akto-hello-world:
image: public.ecr.aws/aktosecurity/hello-world-server:latest
restart: always
ports:
- "8000:8000"

threat-detection:
image: aktosecurity/akto-threat-detection:latest
env_file: ./docker-threat-detection.env
restart: always
depends_on:
- kafka1
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "2"

watchtower:
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env_file: ./watchtower.env
labels:
com.centurylinklabs.watchtower.enable: "false"