Skip to content

Instantly share code, notes, and snippets.

@liyangau
Created December 9, 2025 00:16
Show Gist options
  • Select an option

  • Save liyangau/1937b03ee15c906fd564b825bb2fac9a to your computer and use it in GitHub Desktop.

Select an option

Save liyangau/1937b03ee15c906fd564b825bb2fac9a to your computer and use it in GitHub Desktop.
A docker compose file paired with the kontfix module to quickly start a Konnect dataplane
services:
konnect-local-dp:
image: kong/kong-gateway:3.12
restart: always
volumes:
- "./certs/${CP_REGION}-${CP_NAME}/cert.pem:/cert/cert.pem:ro"
- "./certs/${CP_REGION}-${CP_NAME}/key.pem:/cert/key.pem:ro"
environment:
KONG_LOG_LEVEL: "info"
KONG_DATABASE: "off"
KONG_ROLE: data_plane
KONG_VITALS: off
KONG_CLUSTER_MTLS: pki
KONG_CLUSTER_CONTROL_PLANE: "${CLUSTER_SERVER_NAME}:443"
KONG_CLUSTER_SERVER_NAME: "${CLUSTER_SERVER_NAME}"
KONG_CLUSTER_TELEMETRY_ENDPOINT: "${CLUSTER_TELEMETRY_SERVER_NAME}:443"
KONG_CLUSTER_TELEMETRY_SERVER_NAME: "${CLUSTER_TELEMETRY_SERVER_NAME}"
KONG_STATUS_LISTEN: 0.0.0.0:8100
KONG_ANONYMOUS_REPORTS: "off"
KONG_KONNECT_MODE: "on"
KONG_LUA_SSL_TRUSTED_CERTIFICATE: "system"
KONG_NGINX_WORKER_PROCESSES: 2
KONG_CLUSTER_CERT: "/cert/cert.pem"
KONG_CLUSTER_CERT_KEY: "/cert/key.pem"
KONG_TRACING_INSTRUMENTATIONS: all
KONG_TRACING_SAMPLING_RATE: 1.0
networks:
- konnect
ports:
- 8000:8000
- 8443:8443
networks:
konnect:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment