Skip to content

Instantly share code, notes, and snippets.

@oogali
Created April 9, 2018 11:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oogali/0a3555b0f766dcecc104717203130f6e to your computer and use it in GitHub Desktop.
Save oogali/0a3555b0f766dcecc104717203130f6e to your computer and use it in GitHub Desktop.
kong + kong dashboard docker-compose
version: '3'
services:
kong:
image: kong:0.12-alpine
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: db
KONG_PROXY_ACCESS_LOG: /dev/stdout
KONG_ADMIN_ACCESS_LOG: /dev/stdout
KONG_PROXY_ERROR_LOG: /dev/stderr
KONG_ADMIN_ERROR_LOG: /dev/stderr
KONG_ADMIN_LISTEN: 0.0.0.0:8001
KONG_ADMIN_LISTEN_SSL: 0.0.0.0:8444
ports:
- 8000-8001:8000-8001
- 8443-8444:8443-8444
db:
image: postgres:10-alpine
environment:
POSTGRES_USER: kong
POSTGRES_INITDB_ARGS: --data-checksums
PGDATA: /data/db
POSTGRES_INITDB_XLOGDIR: /data/txnlog
volumes:
- ./db/data:/data/db
- ./db/txnlog:/data/txnlog
ui:
image: pgbi/kong-dashboard
command: "start --kong-url http://kong:8001"
ports:
- 8080:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment