Last active
August 23, 2019 05:02
-
-
Save ledangtuanbk/490eab92b184357a495a157e9d171490 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' | |
services: | |
kong-migrations: | |
image: "${KONG_DOCKER_TAG:-kong:latest}" | |
command: kong migrations bootstrap | |
environment: | |
KONG_DATABASE: postgres | |
KONG_PG_DATABASE: ${KONG_PG_DATABASE:-kong} | |
KONG_PG_HOST: 10.148.0.27 | |
KONG_PG_PASSWORD: ${KONG_PG_PASSWORD:-kong} | |
KONG_PG_USER: ${KONG_PG_USER:-kong} | |
restart: on-failure | |
kong: | |
image: "${KONG_DOCKER_TAG:-kong:latest}" | |
environment: | |
KONG_ADMIN_ACCESS_LOG: /dev/stdout | |
KONG_ADMIN_ERROR_LOG: /dev/stderr | |
KONG_ADMIN_LISTEN: '0.0.0.0:8001' | |
KONG_CASSANDRA_CONTACT_POINTS: db | |
KONG_DATABASE: postgres | |
KONG_PG_DATABASE: ${KONG_PG_DATABASE:-kong} | |
KONG_PG_HOST: 10.148.0.27 | |
KONG_PG_PASSWORD: ${KONG_PG_PASSWORD:-kong} | |
KONG_PG_USER: ${KONG_PG_USER:-kong} | |
KONG_PROXY_ACCESS_LOG: /dev/stdout | |
KONG_PROXY_ERROR_LOG: /dev/stderr | |
ports: | |
- "8000:8000/tcp" | |
- "8001:8001/tcp" | |
- "8443:8443/tcp" | |
- "8444:8444/tcp" | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment