Last active
February 6, 2018 00:01
-
-
Save OmgImAlexis/08d53e33ad7f54da43ff4391b53364a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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