version: '3.5'
services:
kong-migration:
image: kong:latest
command: "kong migrations bootstrap"
container_name: kong-migration
networks:
- proxynet
restart: on-failure
environment:
- "KONG_DATABASE=postgres"
- "KONG_PG_HOST=postgresdb"
- "KONG_PG_USER=postgres"
- "KONG_PG_PASSWORD=postgres"
kong:
image: kong:latest
restart: always
container_name: kong-gateway
environment:
- "KONG_DATABASE=postgres"
- "KONG_PG_HOST=postgresdb"
- "KONG_PG_USER=postgres"
- "KONG_PG_PASSWORD=postgres"
- "KONG_PROXY_ACCESS_LOG=/dev/stdout"
- "KONG_ADMIN_ACCESS_LOG=/dev/stdout"
- "KONG_PROXY_ERROR_LOG=/dev/stderr"
- "KONG_ADMIN_ERROR_LOG=/dev/stderr"
- "KONG_ADMIN_LISTEN=0.0.0.0:8001"
- "KONG_ADMIN_GUI_URL=http://localhost:8002"
depends_on:
- kong-migration
ports:
- "8000:8000"
#- "8443:8443"
- "8001:8001"
#- "8444:8444"
- "8002:8002"
#- "8445:8445"
#- "8003:8003"
#- "8004:8004"
networks:
- proxynet
networks:
proxynet:
name: em-net
"El primer paso para llegar a cualquier parte es decidir que no te vas a quedar donde estás.... da tu primer paso hoy no importa que no veas el camino......"
jueves, 10 de marzo de 2022
Levantar un servidor de Kong mediante docker
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario