Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save prem911/3120558c36f2c07541c75879a7e18c78 to your computer and use it in GitHub Desktop.
Save prem911/3120558c36f2c07541c75879a7e18c78 to your computer and use it in GitHub Desktop.
Docker-compose files for Kong
version: "2"
services:
postgres:
image: postgres:9.4
container_name: kong-database
ports:
- "5432:5432"
environment:
- POSTGRES_USER=kong
- POSTGRES_DB=kong
volumes:
- "db-data:/var/lib/postgresql/data"
web:
image: kong:latest
container_name: kong
environment:
- DATABASE=postgres
restart: always
ports:
- "8000:8000"
- "443:8443"
- "8001:8001"
- "7946:7946"
- "7946:7946/udp"
links:
- postgres
ui:
image: pgbi/kong-dashboard
container_name: kong-dashboard
ports:
- "80:8080"
volumes:
db-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment