-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-context-analyser.yml
More file actions
78 lines (73 loc) · 2.45 KB
/
docker-compose-context-analyser.yml
File metadata and controls
78 lines (73 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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_CURRENT_INSTANCE_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-context-analyser:
image: public.ecr.aws/aktosecurity/akto-api-context-analyzer:latest
env_file: ./docker-context-analyser.env
mem_limit: 4g
restart: always
depends_on:
- kafka1
akto-hello-world:
image: public.ecr.aws/aktosecurity/hello-world-server:latest
restart: always
ports:
- "8000:8000"
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"