Skip to content

Instantly share code, notes, and snippets.

@hunzo
Last active August 27, 2021 14:25
Show Gist options
  • Save hunzo/6d3a6fb8a383f69e709439dc64c8bef0 to your computer and use it in GitHub Desktop.
Save hunzo/6d3a6fb8a383f69e709439dc64c8bef0 to your computer and use it in GitHub Desktop.
kong-docker-compose
version: "3.7"
services:
kong-db:
image: postgres:9.6-alpine
container_name: kong-db
env_file:
- kong-db.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 2s
retries: 15
kong:
image: "kong:${TAG-latest}"
container_name: kong
env_file:
- ./kong.env
depends_on:
- kong-db
ports:
- 127.0.0.1:8001:8001
- 127.0.0.1:8444:8444
- 8000:8000
- 8443:8443
healthcheck:
test: ["CMD", "kong", "health"]
interval: 5s
timeout: 2s
retries: 15
konga-init:
image: pantsel/konga
command: "-c prepare -a postgres -u postgresql://kong:kong@kong-db:5432/konga_db"
depends_on:
- kong-db
konga:
image: pantsel/konga
container_name: konga
depends_on:
- kong-db
env_file:
- konga.env
ports:
- 1337:1337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment