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
25 changes: 25 additions & 0 deletions test-app/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ services:
ports:
- "9092:9092"
- "9101:9101"

# The NET_RAW capability allows a process to create raw sockets. Polaris does not like that.
# This setting removes the NET_RAW capability from the container.
cap_drop:
- NET_RAW
environment:
KAFKA_NODE_ID: 1
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT'
Expand Down Expand Up @@ -43,6 +48,8 @@ services:
- broker
ports:
- "8081:8081"
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider adding a comment explaining the purpose of dropping NET_RAW capability for consistency with the broker service, or alternatively, reference the comment on the broker service to avoid duplication.

Suggested change
- "8081:8081"
- "8081:8081"
# See broker service above for explanation of dropping NET_RAW capability.

Copilot uses AI. Check for mistakes.
cap_drop:
- NET_RAW
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'broker:29092'
Expand All @@ -57,6 +64,8 @@ services:
- schema-registry
ports:
- "8083:8083"
cap_drop:
- NET_RAW
environment:
CONNECT_BOOTSTRAP_SERVERS: 'broker:29092'
CONNECT_REST_ADVERTISED_HOST_NAME: connect
Expand Down Expand Up @@ -91,6 +100,8 @@ services:
- ksqldb-server
ports:
- "9021:9021"
cap_drop:
- NET_RAW
environment:
CONTROL_CENTER_BOOTSTRAP_SERVERS: 'broker:29092'
CONTROL_CENTER_CONNECT_CONNECT-DEFAULT_CLUSTER: 'connect:8083'
Expand All @@ -113,6 +124,8 @@ services:
- connect
ports:
- "8088:8088"
cap_drop:
- NET_RAW
environment:
KSQL_CONFIG_DIR: "/etc/ksql"
KSQL_BOOTSTRAP_SERVERS: "broker:29092"
Expand All @@ -136,6 +149,8 @@ services:
- ksqldb-server
entrypoint: /bin/sh
tty: true
cap_drop:
- NET_RAW

ksql-datagen:
image: confluentinc/ksqldb-examples:7.6.1
Expand All @@ -153,6 +168,8 @@ services:
echo Waiting a few seconds for topic creation to finish... && \
sleep 11 && \
tail -f /dev/null'"
cap_drop:
- NET_RAW
environment:
KSQL_CONFIG_DIR: "/etc/ksql"
STREAMS_BOOTSTRAP_SERVERS: broker:29092
Expand All @@ -168,6 +185,8 @@ services:
- 8082:8082
hostname: rest-proxy
container_name: rest-proxy
cap_drop:
- NET_RAW
environment:
KAFKA_REST_HOST_NAME: rest-proxy
KAFKA_REST_BOOTSTRAP_SERVERS: 'broker:29092'
Expand All @@ -188,6 +207,8 @@ services:
- "8000-8002:8000-8002"
- "8010-8013:8010-8013"
- "8018-8019:8018-8019"
cap_drop:
- NET_RAW

# Copied from https://docs.sonarsource.com/sonarqube/latest/setup-and-upgrade/install-the-server/#example-docker-compose-configuration .
sonarqube:
Expand All @@ -204,6 +225,8 @@ services:
- sonarqube_logs:/opt/sonarqube/logs
ports:
- "9000:9000"
cap_drop:
- NET_RAW

postgres:
image: postgres:15-alpine
Expand All @@ -213,6 +236,8 @@ services:
volumes:
- postgresql:/var/lib/postgresql
- postgresql_data:/var/lib/postgresql/data
cap_drop:
- NET_RAW

volumes:
sonarqube_data:
Expand Down