Skip to content

Instantly share code, notes, and snippets.

@mayocream
Created November 4, 2022 08:46
Show Gist options
  • Save mayocream/1f5deb120bb55c2e343b6b2461f19c95 to your computer and use it in GitHub Desktop.
Save mayocream/1f5deb120bb55c2e343b6b2461f19c95 to your computer and use it in GitHub Desktop.
version: "3.8"
services:
postgres:
image: postgres:13
command: -c max_connections=5000
environment:
POSTGRES_PASSWORD: kong
POSTGRES_USER: kong
POSTGRES_DB: kong
restart: always
kong:
image: kong/kong-gateway:3.0
command: sh -c "kong migrations bootstrap && kong start"
ports:
- "8000:8000"
- "8001:8001"
- "8002:8002"
- "8003:8003"
- "8004:8004"
environment:
KONG_PG_HOST: postgres
KONG_PG_PASSWORD: kong
KONG_ADMIN_LISTEN: 0.0.0.0:8001
KONG_ANONYMOUS_REPORTS: 'off'
KONG_VITALS: 'on'
KONG_PORTAL: 'on'
# KONG_ADMIN_GUI_URL: 'http://127.0.0.1:8080'
KONG_ADMIN_GUI_SESSION_CONF: '{"secret":"Y29vbGJlYW5z","storage":"kong","cookie_secure":false,"cookie_samesite":"off"}'
KONG_PORTAL_SESSION_CONF: '{"secret":"Y29vbGJlYW5z","storage":"kong","cookie_secure":false,"cookie_samesite":"off"}'
KONG_PORTAL_AUTH: basic-auth
KONG_ADMIN_GUI_AUTH: basic-auth
KONG_ENFORCE_RBAC: 'on'
KONG_PASSWORD: handyshake
KONG_SMTP_MOCK: 'on'
restart: always
depends_on:
- postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment