Skip to content

Instantly share code, notes, and snippets.

@jl91
Forked from oogali/docker-compose.yml
Created January 7, 2019 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jl91/5f951b6bbaf7b3a1e366eff3d324b474 to your computer and use it in GitHub Desktop.
Save jl91/5f951b6bbaf7b3a1e366eff3d324b474 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