All Templates / Other
Kong API Gateway
Setup for Kong Gateway with PostgreSQL and Konga UI management.
Postgres
railwayapp-templates/postgres-ssl:latest
Just deployed
/var/lib/postgresql/data
Kong API Gateway
kong:latest
Just deployed
kong-migration
kong:latest
Just deployed
konga
pantsel/konga:latest
Just deployed
This setup provides a full environment for running Kong Gateway, a powerful and flexible API management solution, alongside PostgreSQL for database storage and Konga UI for a user-friendly web interface to manage Kong.
POSTGRES_USER
: User for PostgreSQL (default: kong)POSTGRES_DB
: Database name for PostgreSQL (default: kong)POSTGRES_PASSWORD
: Password for PostgreSQL (default: kong)5432
kong-data
to persist dataKONG_DATABASE
: Database type (postgres)KONG_PG_HOST
: Host of PostgreSQL service (kong-database)KONG_PG_USER
: User for PostgreSQL (same as POSTGRES_USER)KONG_PG_PASSWORD
: Password for PostgreSQL (same as POSTGRES_PASSWORD)kong migrations bootstrap
to set up the database schemakong-database
to be healthy before startingKONG_DATABASE
: Database type (postgres)KONG_PG_HOST
: Host of PostgreSQL service (kong-database)KONG_PG_USER
: User for PostgreSQL (same as POSTGRES_USER)KONG_PG_PASSWORD
: Password for PostgreSQL (same as POSTGRES_PASSWORD)8000
, 8443
, 8001
, and 8444
for proxy and admin APIDB_ADAPTER
: Database adapter (postgres)DB_HOST
: Host of PostgreSQL service (kong-database)DB_USER
: User for PostgreSQL (same as POSTGRES_USER)DB_PASSWORD
: Password for PostgreSQL (same as POSTGRES_PASSWORD)DB_DATABASE
: Database name (same as POSTGRES_DB)NODE_ENV
: Environment mode (production)1337
for accessing the Konga UI.env
file:
POSTGRES_USER=kong
POSTGRES_DB=kong
POSTGRES_PASSWORD=kong
docker-compose up -d
to start all services.http://localhost:8001
and https://localhost:8444
http://localhost:1337
This setup ensures a robust and easy-to-manage environment for API management using Kong, with PostgreSQL for data storage and Konga UI for streamlined administration.
Template Content
Details
Fulvio's Projects
Created on Jun 30, 2024
45 total projects
9 active projects
65% success on recent deploys
Other
More templates in this category
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform
Lucas's Projects
44
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa
Shahed Nasser's Projects
318