By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
IT Infras HolicIT Infras HolicIT Infras Holic
  • News
  • Linux
    • Application
    • SELinux
    • Centos
    • Ubuntu
  • Docker
  • Web Server
    • Kong
    • Nginx
    • Openlitespeed
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
    • 2048
    • Fantasy Forest
    • Hextris
    • Crossword
Search
  • Privacy Policy
© 2024. All Rights Reserved.
Font ResizerAa
IT Infras HolicIT Infras Holic
Font ResizerAa
  • News
  • Linux
  • Docker
  • Web Server
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
Search
  • News
  • Linux
    • Application
    • SELinux
    • Centos
    • Ubuntu
  • Docker
  • Web Server
    • Kong
    • Nginx
    • Openlitespeed
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
    • 2048
    • Fantasy Forest
    • Hextris
    • Crossword
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
IT Infras Holic > Blog > Web Server > Kong > Install Kong Konga using Docker Compose
KongDockerWeb Server

Install Kong Konga using Docker Compose

writer
Share
2 Min Read
SHARE

Install Kong Konga using Docker Compose

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.

Contents
Install Kong Konga using Docker Compose1. Create docker-compose.yml file2. Copy paste script below

Using Compose is basically a three-step process:

  1. Define your app’s environment with a Dockerfile so it can be reproduced anywhere.
  2. Define the services that make up your app in docker-compose.yml so they can be run together in an isolated environment.
  3. Run docker compose up and the Docker compose command starts and runs your entire app. You can alternatively run docker-compose up using Compose standalone(docker-compose binary).

Let's do Install Kong Konga using Docker Compose

1. Create docker-compose.yml file

2. Copy paste script below

Dont forget to change:

password-prostgres  in POSTGRES_PASSWORD & KONG_PG_PASSWORD

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3'
 
services:
 
kong-database:
   image: postgres:9.6
   container_name: kong-database
   ports:
     - 5432:5432
   environment:
     - POSTGRES_USER=kong
     - POSTGRES_DB=kong
     - POSTGRES_PASSWORD=password-postgres
   networks:
     - kong-net
   volumes:
     - "db-data-kong-postgres:/var/lib/postgresql/data"
     - "/etc/localtime:/etc/localtime:ro"
 
kong-migrations:
   image: kong
   environment:
     - KONG_DATABASE=postgres
     - KONG_PG_HOST=kong-database
     - KONG_PG_PASSWORD=password-postgres
     - KONG_CASSANDRA_CONTACT_POINTS=kong-database
   command: kong migrations bootstrap
   restart: on-failure
   networks:
     - kong-net
   depends_on:
     - kong-database
 
kong:
   image: kong
   container_name: kong
   environment:
     - LC_CTYPE=en_US.UTF-8
     - LC_ALL=en_US.UTF-8
     - KONG_DATABASE=postgres
     - KONG_PG_HOST=kong-database
     - KONG_PG_USER=kong
     - KONG_PG_PASSWORD=password-postgres
     - KONG_CASSANDRA_CONTACT_POINTS=kong-database
     - 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, 0.0.0.0:8444 ssl
   restart: on-failure
   ports:
     - 80:8000
     - 443:8443
     - 8001:8001
     - 8444:8444
   links:
     - kong-database:kong-database
   networks:
     - kong-net
   depends_on:
     - kong-migrations
   volumes:
     - "/etc/localtime:/etc/localtime:ro"
     - "/etc/timezone:/etc/timezone:ro"
 
konga:
   image: pantsel/konga
   ports:
     - 1337:1337
   links:
     - kong:kong
   container_name: konga
   environment:
     - NODE_ENV=production
   volumes:
     - "/etc/localtime:/etc/localtime:ro"
     - "/etc/timezone:/etc/timezone:ro"
 
volumes:
db-data-kong-postgres:
 
networks:
kong-net:
   external: false

Run

1
docker-compose up -d

Done, you just did  Install Kong Konga using Docker Compose

You Might Also Like

Install Cyberpanel on Ubuntu 22.04

How to Clear Docker Logs and Activate Log Rotate

How to Change Docker Timezone

How to Enable Docker Remote API

Install Docker CE on CentOS 7

TAGGED: docker, docker compose, kong, konga
Share This Article
Facebook Twitter Whatsapp Whatsapp LinkedIn Telegram Copy Link
Previous Article Change Docker TImezone How to Change Docker Timezone
Next Article How to Clear Docker Logs and Activate Log Rotate How to Clear Docker Logs and Activate Log Rotate
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest News

bash
Monitoring File & Directory Changes using Bash Script
Linux Application
vulnerability
Vulnerability Checker CVE-2024-3094
Linux
wiki.js
Unleashing the Potential of Knowledge Management with Wiki.js
Application Linux
Install Apache Guacamole
How to Install Apache Guacamole with Docker Compose
Application Linux

You Might also Like

bash
CentosWeb Server

How to Add Additional HTTP Headers in OpenLitespeed

1 Min Read
Follow US
© 2024
activity notes activity notes
Welcome Back!

Sign in to your account

Lost your password?