Skip to content

Instantly share code, notes, and snippets.

@OmgImAlexis
Last active February 6, 2018 00:01
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 OmgImAlexis/08d53e33ad7f54da43ff4391b53364a8 to your computer and use it in GitHub Desktop.
Save OmgImAlexis/08d53e33ad7f54da43ff4391b53364a8 to your computer and use it in GitHub Desktop.
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