{"id":18345284,"url":"https://github.com/hunter-ji/kong-konga-docker-compose","last_synced_at":"2025-04-06T08:31:35.401Z","repository":{"id":39410752,"uuid":"189562943","full_name":"hunter-ji/kong-konga-docker-compose","owner":"hunter-ji","description":"Docker-compose.yml for kong, konga and postgres using official image.","archived":false,"fork":false,"pushed_at":"2023-05-05T00:47:11.000Z","size":12,"stargazers_count":136,"open_issues_count":1,"forks_count":73,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T20:46:37.524Z","etag":null,"topics":["docker-compose","kong","konga"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hunter-ji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-05-31T09:01:20.000Z","updated_at":"2025-03-12T07:13:42.000Z","dependencies_parsed_at":"2023-01-21T23:01:01.842Z","dependency_job_id":"c60ca1f0-840b-4faf-b603-d680ae7d9ce4","html_url":"https://github.com/hunter-ji/kong-konga-docker-compose","commit_stats":null,"previous_names":["hunter-ji/kong-konga-docker-compose"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fkong-konga-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fkong-konga-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fkong-konga-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fkong-konga-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunter-ji","download_url":"https://codeload.github.com/hunter-ji/kong-konga-docker-compose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457172,"owners_count":20941900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker-compose","kong","konga"],"created_at":"2024-11-05T21:07:42.161Z","updated_at":"2025-04-06T08:31:35.124Z","avatar_url":"https://github.com/hunter-ji.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# kong-konga-docker-compose\n\nUse the latest version of kong and konga, and do not need to compile, directly pull the official image to run.\n\nFour containers:\n\n* *kong-database* : postgres\n* *kong-migrations* : kong\n* *kong* : kong\n* *konga* : konga\n\n\n\n## Usage\n\n```bash\ndocker-compose up -d\n```\n\n\n\n## Configure https\n\nConfigure https as follows, and then use https protocol to access port 8443.\n\n```yaml\nkong:\n  ...\n  volumes:\n    - \"./ssl:/mnt/ssl\"\n  environment:\n    - KONG_SSL_CERT=/mnt/ssl/ssl.pem\n    - KONG_SSL_CERT_KEY=/mnt/ssl/ssl.key\n    ...\n```\n\n\n\n## If you are using docker-compose-production.yml\n\nThe production environment needs to ensure security and performance. Here, the production environment configuration file created in a simple scenario is for reference only. If you have a better way, please let me know.\n\n#### 1. use tls certificate\n\nCreate a folder ssl under the same level folder of docker-compose-production.yml, built-in tls certificate file, the specific name can be modified in the yaml file, the default is `ssl.key` and `ssl.pem`.\n\n#### 2. create network\n\nCreate a network for kong, and then connect the business nodes through the intranet. The default network name here is kong-net, you can create it with the following command.\n\n```bash\ndocker network create kong-net\n```\n\n#### 3. run\n\n```bash\ndocker-compose up -d\n```\n\n#### 4. register service and route of konga\n\nIn the production version, the port of konga is not exposed, so that konga's request also distributes traffic on kong. So here you need to manually request kong's management api for registration.\n\nInstall `curl` on any node in the network where kong is located, and then execute the following command.When both requests return `HTTP/1.1 201 Created`, the registration is successful.\n\n```bash\n# register service\ncurl -i -X POST --url http://kong:8001/services/ --data 'name=konga' --data 'url=http://konga:1337'\n# register route\ncurl -i -X POST --url http://kong:8001/services/konga/routes --data 'name=konga' --data 'paths[]=/konga'\n```\n\nThen, go to the browser to visit your web address. The first time you log in to konga, you need to visit the following address.The key is to add the path of `/konga`, make it `/konga/register` path, the first time the `/register` path will be loaded directly by default.\n\n```\nhttps://\u003cyour-domain-name\u003e/konga/register#!/services\n```\n\n\n\n## Official documentation\n\ninstall kong using docker: https://docs.konghq.com/install/docker/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunter-ji%2Fkong-konga-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunter-ji%2Fkong-konga-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunter-ji%2Fkong-konga-docker-compose/lists"}