diff --git a/infrastructure/kong/docker-compose.yml b/infrastructure/kong/docker-compose.yml index 13c3f54..2dcb460 100644 --- a/infrastructure/kong/docker-compose.yml +++ b/infrastructure/kong/docker-compose.yml @@ -3,6 +3,7 @@ services: image: kong:3.6-ubuntu container_name: genex-kong restart: unless-stopped + network_mode: host environment: KONG_DATABASE: "off" KONG_DECLARATIVE_CONFIG: /etc/kong/kong.yml @@ -10,15 +11,13 @@ services: KONG_ADMIN_ACCESS_LOG: /dev/stdout KONG_PROXY_ERROR_LOG: /dev/stderr KONG_ADMIN_ERROR_LOG: /dev/stderr - KONG_PROXY_LISTEN: "0.0.0.0:8080" - KONG_ADMIN_LISTEN: "127.0.0.1:8001" + KONG_PROXY_LISTEN: "127.0.0.1:48080" + KONG_ADMIN_LISTEN: "127.0.0.1:48001" # Large file upload support KONG_NGINX_PROXY_PROXY_REQUEST_BUFFERING: "off" KONG_NGINX_PROXY_CLIENT_MAX_BODY_SIZE: "500m" volumes: - ./kong.yml:/etc/kong/kong.yml:ro - ports: - - "127.0.0.1:48080:8080" healthcheck: test: ["CMD", "kong", "health"] interval: 10s