{"id":24763450,"url":"https://github.com/racksync/kong-gateway-docker","last_synced_at":"2026-02-07T11:32:55.664Z","repository":{"id":272794461,"uuid":"917773611","full_name":"racksync/kong-gateway-docker","owner":"racksync","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-16T16:27:40.000Z","size":647,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T12:05:05.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/racksync.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-16T16:10:28.000Z","updated_at":"2025-03-16T08:55:56.000Z","dependencies_parsed_at":"2025-01-16T17:52:58.154Z","dependency_job_id":"f2d24e2e-66de-4e7f-9e0c-6a8291053451","html_url":"https://github.com/racksync/kong-gateway-docker","commit_stats":null,"previous_names":["racksync/kong-gateway-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/racksync/kong-gateway-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racksync%2Fkong-gateway-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racksync%2Fkong-gateway-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racksync%2Fkong-gateway-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racksync%2Fkong-gateway-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/racksync","download_url":"https://codeload.github.com/racksync/kong-gateway-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racksync%2Fkong-gateway-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29193599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-28T20:30:25.580Z","updated_at":"2026-02-07T11:32:55.651Z","avatar_url":"https://github.com/racksync.png","language":"Shell","readme":"# 🐳 Kong Docker deployment\n---\n\nKong API Gateway deployment with docker and docker-compose - The most popular open-source API Gateway built for multi-cloud and hybrid architectures.\n\n## Overview\n\nKong serves as a scalable, open-source API Gateway that sits in front of your services. It offers powerful features including:\n\n- Authentication\n- Rate Limiting\n- Traffic Control\n- Analytics\n- Plugin Extensibility\n- Load Balancing\n- Health Checks\n- API Transformations\n\n![Kong Docker Setup](./screenshot.png)\n*Kong Docker deployment architecture overview*\n\n## Status\n\nThis deployment is production ready.\n\n## Change default value\n\nCopy `default.env` to `.env`\n\n```\ncp default.env .env\n```\n\nthen edit the `.env` file to change default values.\n\n| Variable name | Default value |\n|---------------|---------------|\n| `POSTGRES_VERSION`    | 14-alpine |\n| `POSTGRES_USER`       | kong |\n| `POSTGRES_PASSWORD`   | kong |\n| `POSTGRES_DB`         | kong |\n| `KONG_ADMIN_LISTEN`   | 0.0.0.0:8001 |\n| `KONG_PROXY_LISTEN`   | 0.0.0.0:8000, 0.0.0.0:8443 ssl http2 |\n| `KONG_PG_HOST`        | kong-database |\n| `KONG_PG_PASSWORD`    | kong == `env POSTGRES_PASSWORD` |\n| `COMPOSE_PROJECT_NAME`| kong |\n| `KONG_DATABASE`       | postgres |\n| `KONG_CASSANDRA_CONTACT_POINTS` | kong-database |\n| `KONG_ADMIN_GUI_LISTEN` | 0.0.0.0:8002 |\n| `KONG_ADMIN_GUI_URL` | http://localhost:8002 |\n\n## Deploy Kong\n\n### Quick Setup\n\n```bash\n./setup.sh\n```\n\nThis will execute all the necessary steps (database setup, migrations, and Kong startup) automatically.\n\n### Manual Deployment Steps\n\nIf you prefer to run each step manually:\n\n### Deploy kong-database\n\n```\ndocker-compose up -d kong-database\n```\n\n### Run kong-database migrations\n\n```\ndocker-compose run --rm kong-migrations\n```\n\n### Start Kong\n\n```\ndocker-compose up -d kong\n```\n\n**Now Kong is running**\n\n- Kong Admin API http://127.0.0.1:8001\n- Kong Manager http://127.0.0.1:8002\n- Kong Proxy http://127.0.0.1:8000\n\n### Explanation of Dependency Flow\n- `kong-database` is foundational because both `kong-migrations` and `kong` rely on the database to function.\n- `kong-migrations` ensures the database is initialized and ready for use by Kong.\n- `kong` is the last to start, as it requires the database and migrations to be fully prepared.\n\nBy setting `depends_on`, Docker Compose handles these dependencies automatically, starting the containers in the correct order as long as all services are defined in the same file and executed using `docker-compose up`. However, note that `depends_on` only checks if a container starts, not if it is fully ready, so the health checks ensure readiness.\n\n## Architecture Overview\n\nKong Gateway consists of several key components:\n\n1. **Kong Gateway**: The core proxy server that handles API requests\n2. **PostgreSQL Database**: Stores Kong's configuration data\n3. **Kong Manager**: Web GUI for administrative tasks\n4. **Kong Admin API**: RESTful interface for configuration\n\n## Security Considerations\n\n- Change default passwords in production\n- Use SSL/TLS for all external connections\n- Implement proper network segmentation\n- Regular security updates and patches\n- Access control for Kong Manager and Admin API\n\n### Upgrading Kong version\n\n\u003e **WARNING** : This may take some downtime to start a new Kong version.\n\n1. Change `KONG_VERSION` in `.env` file to a newer version.\n\n\t\u003e If running kong version 2.2 change to 2.3 (or 2.3.0). [Suggested upgrade path](https://github.com/Kong/kong/blob/master/UPGRADE.md)\n\n2. Run migrations upgrade\n\n\t```\n\tdocker-compose run --rm kong kong migrations up --vv\n\t```\n\n3. Confirm finish migrations upgrade\n\n\t```\n\tdocker-compose run --rm kong kong migrations finish --vv\n\t```\n\t\n4. Start new Kong version\n\n\t```\n\tdocker-compose up -d kong\n\t```\n\n## Monitoring \u0026 Maintenance\n\n### Health Checks\n\nMonitor Kong's health using the health endpoint:\n```bash\ncurl http://localhost:8001/status\n```\n\n### Backup \u0026 Recovery\n\nRegular database backups are recommended:\n```bash\ndocker exec kong-database pg_dump -U kong kong \u003e kong_backup.sql\n```\n\n### 📚 Automation Training\n\n- [สินค้าและบริการ](http://racksync.com)\n- [เทรนนิ่งคอร์ส](https://facebook.com/racksync)\n\n### 👥 Community\n\n- [Home Automation Thailand](https://www.facebook.com/groups/hathailand)\n- [Home Automation Marketplace](https://www.facebook.com/groups/hatmarketplace)\n- [Home Automation Thailand Discord](https://discord.gg/Wc5CwnWkp4)\n\n## 🏢 [RACKSYNC CO., LTD.](https://racksync.com)\n\nRACKSYNC Co., Ltd. specializes in automation and smart solutions of all scales. We are experts in designing, implementing, and monitoring sophisticated automation systems. Our team of specialists provides comprehensive consulting services and technical implementation for both residential and commercial projects. Beyond automation, we offer full-cycle Software as a Service (SaaS) development, helping businesses transform their operations through custom digital solutions. With our deep expertise in IoT, home automation, and enterprise systems, we deliver reliable and innovative solutions tailored to each client's unique requirements.\n\n📍 RACKSYNC COMPANY LIMITED    \n🌏 Suratthani, Thailand 84000   \n📧 Email : devops@racksync.com   \n📞 Tel : +66 85 880 8885   \n\n[![Home Automation Thailand Discord](https://img.shields.io/discord/986181205504438345?style=for-the-badge)](https://discord.gg/Wc5CwnWkp4) [![Github](https://img.shields.io/github/followers/racksync?style=for-the-badge)](https://github.com/racksync) \n[![WebsiteStatus](https://img.shields.io/website?down_color=grey\u0026down_message=Offline\u0026style=for-the-badge\u0026up_color=green\u0026up_message=Online\u0026url=https%3A%2F%2Fracksync.com)](https://racksync.com)\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracksync%2Fkong-gateway-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fracksync%2Fkong-gateway-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracksync%2Fkong-gateway-docker/lists"}