Skip to content

Instantly share code, notes, and snippets.

@OmgImAlexis OmgImAlexis/kong.yml
Last active Feb 6, 2018

Embed
What would you like to do?
version: '3.0'
services:
database:
image: postgres:9.5
ports:
- 5432:5432
environment:
- POSTGRES_USER=kong
- POSTGRES_DB=kong
kong:
image: kong:0.9.9
ports:
- 8000:8000
- 8443:8443
- 8001:8001
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong_database # When you use docker stack deploy, service name will be <stack-name>_<service-name>
- KONG_LOG_LEVEL=debug
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 30s
healthcheck:
test: curl -f http://localhost:8001/status || exit 1
interval: 30s
timeout: 5s
retries: 5
konga:
image: pantsel/konga
ports:
- 3000:3000
- 1337:1337
environment:
- KONGA_BACKEND_URL=kong_kong:8001
- NODE_ENV=production
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 30s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.